b2KIT

Hex Dump Viewer

View files as hex dumps with ASCII representation. Search for patterns, identify file magic bytes, and analyze binary data.

Tested tool guide Tested browser tools Checked August 16, 2026

What Hex Dump Viewer does, with a checked example

A Hex Dump Viewer exposes a file as ordered byte values instead of relying on its filename extension or a text decoder. It presents hexadecimal bytes beside an ASCII representation, supports pattern searches, and helps reveal recognizable file signatures. The ASCII side is only a reading aid: it cannot faithfully display arbitrary binary data or multibyte text, so base conclusions on the hexadecimal values. File inspection happens in the browser, and the selected bytes are not uploaded.

Worked example

A concrete input and expected output from the current implementation.

Input

A two-byte file containing exactly the ASCII text Hi, with no newline or byte-order mark.

Expected output

At offsets 0 and 1, the hexadecimal byte values are 48 and 69. The ASCII representation is Hi.

ASCII H has decimal value 72, which is hexadecimal 48. ASCII i has decimal value 105, which is hexadecimal 69.

How the result is produced

1

Reading dump rows

Each file byte is represented by two hexadecimal digits, from 00 through FF. Consecutive bytes are grouped into dump rows and paired with an ASCII view when a byte corresponds to a printable ASCII character. Bytes without such a character cannot be represented faithfully in that side column. Position information relates a visible byte sequence to its location in the file.

2

Searching and checking signatures

Pattern search narrows inspection to occurrences of a chosen sequence in the byte stream. The first bytes are especially useful when checking common file signatures, also called magic bytes, because many formats define recognizable leading values. The viewer reports what is present; interpreting that sequence requires comparison with a format definition, and a matching signature does not establish that the remaining file is valid.

Good uses

  • Check whether a file renamed with the wrong extension still begins with the signature expected for its claimed format.
  • Locate embedded identifiers, protocol markers, delimiters, or short ASCII fragments while performing initial triage on an unfamiliar binary file.
  • Inspect header bytes and nearby positions when investigating whether a downloaded file is truncated, malformed, or different from its stated type.

Limits and checks

  • The ASCII representation is lossy. Control bytes, zero bytes, and non-ASCII values do not map cleanly to readable single-byte characters.
  • A magic-byte match suggests a file format but does not prove that the payload is complete, safe, or internally consistent.
  • Searches operate on stored bytes. A visible character may occupy several bytes in an encoding such as UTF-8, so an assumed one-byte pattern can miss it.

Common questions

How should I read a line of the hex dump?

Treat each two-digit hexadecimal value in the data area as one byte. Use the accompanying position information to locate that byte within the file, and use the ASCII side only as a quick clue for printable text. Do not combine a row position with the data bytes or assume every displayed character represents a complete encoded character.

Can magic bytes identify a file type conclusively?

No. A recognizable signature can narrow the possibilities, but some formats share containers or related headers, damaged files may contain only part of a valid header, and deliberately constructed files can imitate signatures. Confirm important findings against the format specification and inspect structural bytes beyond the opening sequence. The viewer exposes byte evidence; it does not certify the file.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools