In Burp Suite's Comparer, how do the Words and Bytes analysis options differ, and what can each one miss or bury?
answer
- two items, one diff
- split on whitespace
- edits to turn first into second
- costlier mode is the fallback
- dynamic values add noise
basics
~20 sWords splits both items on whitespace and reports token-level edits that turn the first into the second. Bytes reports byte-level edits at much higher computing cost, so it is the fallback when Words misses the relevant difference.
solid answer
~40 sComparer takes any two items of data, sent from anywhere in Burp or pasted or loaded from a file, and shows what edits turn the first into the second. **Words** tokenizes each item on whitespace and reports token-level edits; it is fast and readable, but it works at token granularity, so it tells you a token changed rather than which byte inside it, and whitespace itself is the delimiter. **Bytes** reports byte-level edits and needs significantly more computing, so use it when Words does not show the relevant difference. Either mode can bury the one change that matters under per-response noise such as timestamps or anti-CSRF values, so learn the baseline noise first. A highlighted difference shows that two items differ, never why.
go deeper
Say that Comparer shows the edits that turn one item into another, with Words as the normal mode and Bytes for finer detail.
Explain Words as whitespace tokens and Bytes as byte-level edits at higher cost, and name the fallback rule: Bytes when Words does not show the relevant difference.
Establish baseline noise first, then read each highlight against it; the difference count is not a finding count, and a diff observes without explaining.
For a retest standard, require evidence that states the compared pair, the mode and the baseline noise, so a before/after claim can be re-run by someone else.
## What Comparer is for Burp Suite's **Comparer** compares any two items of data to find subtle differences between requests or responses. For an assessor or reviewer on a staging system, the typical use is a retest or a puzzle: two responses to near-identical requests whose lengths differ, or two builds of the same page before and after a fix. You send an item to Comparer from anywhere in Burp, or add one with **Paste** (clipboard) or **Load** (file). **Remove** and **Clear** tidy the lists. The two item tables list everything you have sent, and you must select one item in each before running a comparison. ## The two analysis options | Option | What it compares | Cost and typical use | |---|---|---| | **Words** | Tokenizes each item on whitespace delimiters and identifies the token-level edits needed to turn the first item into the second | Cheap and readable; the normal first choice | | **Bytes** | Identifies the byte-level edits needed to turn the first item into the second | Significantly more computing power; used when Words does not identify the relevant differences | The results open in a new window with the two items side by side. Colour coding marks each modification, deletion and addition needed to turn the first item into the second, and anything unhighlighted is in both. The title bar shows the **total number of differences**. **Sync views** scrolls the two panels together, and you can read both items as **Text** or **Hex**. ## What each mode can hide Both modes answer "which edits turn A into B", and each can mislead in its own way. - **Words works at token granularity.** A difference inside a long token appears as a changed token, not as a list of the changed characters. Because whitespace is the delimiter, whitespace itself is not what a word comparison is designed to show, so if a whitespace-level change matters, confirm it in Bytes or the Hex view rather than trusting a clean Words result. - **Bytes shows everything, including what you do not care about.** Every per-response value, such as a timestamp, a request identifier or an anti-CSRF value, produces differences. The more of them there are, the easier it is for the one meaningful change to drown. - **Neither mode explains.** The result is the minimum list of edits, not a cause. A different `Content-Length` between two responses is an observation, and whether it came from a different record, a different session state or a code change has to be established by another step, for example resending the request. ## Reading a diff on a retest Imagine a reviewer retesting a fix on a staging build at `example.internal`. They keep one response from before the fix and capture one after, then send both to Comparer. 1. First compare **two fresh responses from the unchanged build**. Every difference between them is baseline noise, and noting where it sits makes it recognisable later. 2. Run Words on the before/after pair. The difference count in the title bar is not the count of meaningful changes; read each highlighted region and discard the ones that match the baseline noise. 3. If the change you expected is not visible, or the lengths differ by an amount the highlights do not account for, switch to Bytes and read the Hex view. 4. Write down which mode and which two items you compared, so the observation can be repeated. ## Where the output stops being trustworthy - A diff is only as meaningful as the pair you chose. Comparing responses taken under different sessions or at different times mixes the change you care about with unrelated variation. - Many highlighted regions say the items differ a lot, not that the application changed a lot. - Comparer also exists for two site maps: comparing site maps is a separate function found under Target, Site map, and is not the same tool as the Comparer tab. ## Common slips - Running Bytes first "because it is more precise" and then drowning in noise and wasted computing. - Reading the difference count in the title bar as the number of meaningful changes. - Treating a highlight as proof of cause. - Thinking Comparer works only on messages captured by the Proxy, when pasted and loaded items are accepted too.
- Two responses from the same page differ by a timestamp and a per-session anti-CSRF value as well as the change you are retesting. How do you keep the diff from hiding the one that matters?Learn the baseline first: compare two fresh responses from the unchanged build and note where the always-different regions sit. Then compare the before/after pair and read each highlight against that baseline instead of relying on the total count in the title bar. Record which items and which mode you used.
- Why is Bytes not simply the default analysis option?The documentation says byte-level comparison requires significantly more computing power and should normally be used only when a word-level comparison does not identify the relevant differences. Words is quicker and easier to read, and Bytes is the fallback for what tokenizing on whitespace smooths over.
- Does a Comparer result tell you why two responses differ?No. It lists the edits needed to turn one item into the other. The cause lies in the requests, the session state or the application's code, and has to be confirmed by another step such as resending a request under controlled conditions and comparing again.
- Always runs Bytes first because it is more precise
- Reads the title bar's difference count as the number of meaningful changes
- Treats a highlighted difference as proof of what caused it
- Thinks Comparer accepts only messages captured by the Proxy
- Compares responses from different sessions and calls every difference a finding