EditSafely

Compare Binary Streams

See the difference between two binary blobs of bytes.

Runs on your device, nothing uploaded

Line up
Try:

0 chars · 0 lines

0 chars

Output

See the difference between two binary blobs of bytes.

Type or paste above to see the result here.

Example: Diff two streams

What you paste never leaves this tab

Compare Binary Streams is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, whatever you type in is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Compare Binary Streams

  1. 1. Paste the two streams. Paste the expected stream in box A and the received one in box B. Two lines or two values in box A work too. Streams line up from the left; choose Line up From the right for numbers of different lengths.
  2. 2. Read the Hamming distance. The answer is the number of differing bits, the Hamming distance, with tiles for same, different, similarity and the positions. The bit strip marks every differing column, and a shorter stream gets a note because its missing bits count as different.
  3. 3. Copy the diff report. Copy the aligned streams with their markers into a bug report or commit message so others can see precisely which bits changed.

When to use Compare Binary Streams

Compare Binary Streams is a diff tool for raw bits. It answers two questions at once: where exactly do two sequences disagree, and how many bits separate them, which is the Hamming distance. That beats scanning parallel strings by eye every time the data is more than a few bits long.

  • Locating corruption after transmission. A payload came out of a radio link slightly wrong. Diff the sent and received bitstreams to see whether errors cluster in bursts, which points at interference, or scatter randomly.
  • Measuring Hamming distance for coursework. Coding theory assignments constantly ask for the distance between codewords. Paste both words and the differing-bits count is your answer, with the marker line as supporting work.
  • Verifying a bit-level round trip. After encoding data and decoding it back, compare the original stream against the round-tripped one. Zero differing bits proves the pipeline is lossless; anything else pinpoints the damage.
  • Debugging off-by-one shifts. When a stream diff shows nearly every bit differing, the culprit is often misalignment rather than corruption. The caret pattern makes a one-bit shift easy to recognize.

Examples

Diff two streams

Input

1111
1010

Output

1111
1010
 ^ ^
Differing bits: 2

Expected and received

Input

11110000
10100000

Output

11110000
10100000
 ^ ^
Differing bits: 2

About the Compare Binary Streams tool

Compare Binary Streams does its work locally, right in the browser. See the difference between two binary blobs of bytes. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the Binary Tools collection on EditSafely, a set of 112 small, focused Binary utilities that share the same instant, private workspace.

You can shape the output with the Line up setting, and the result refreshes the moment you change it. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Does Compare Binary Streams cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.