Developer Tools

View a Hex Dump

100% Free No Signup Runs in Browser

Transform pasted text with the hex dump viewer and copy the cleaned output.

Direct Answer

Use the Hex Dump Viewer when you need to inspect the raw bytes of a file or string, such as checking a file signature, debugging a binary format, or finding embedded text inside a binary.

Reading a Hex Dump Layout

A hex dump organizes raw bytes into three aligned columns so you can cross-reference a byte's position, its hexadecimal value, and its printable character all at once.

  • The offset column (usually shown in hex) marks how many bytes into the file or string each row starts.
  • The hex column shows each byte's value as two hexadecimal digits, commonly 16 bytes per row.
  • The ASCII sidebar shows the same bytes as printable characters where possible, letting you spot readable text at a glance.
  • Non-printable bytes appear as a dot (or similar placeholder) in the ASCII column since they have no visible character representation.

What a Hex Dump Is Useful For

Looking at raw bytes rather than a rendered or parsed view is the fastest way to answer certain debugging questions that higher-level tools can't easily answer.

  • Checking the magic number (the first few bytes) to identify a file's true type regardless of its extension.
  • Diagnosing a corrupted or truncated file by comparing its header bytes against a known-good example.
  • Finding embedded, human-readable strings inside an otherwise binary file, like a version string or URL baked into a compiled binary.
  • Verifying whether a text file has a byte order mark (BOM) or unexpected line-ending bytes that aren't visible in a normal text editor.

How to Use HEX Dump Viewer

  1. Paste or type your content into the input box.
  2. The transformed result appears instantly in the result panel below.
  3. Click Copy result to copy the output to your clipboard.
  4. Download .txt saves the transformed text as a file.
  5. Reset clears everything and lets you start over.

Reference

FeatureDetails
PurposeTransform pasted text into a cleaner or different format.
InputText, lines, lists, or copied content.
ResultTransformed text ready to copy or download.
Best forCleanup, formatting, list preparation, and copy-paste workflows.
CategoryDeveloper Tools
Works onDesktop, tablet, and mobile browsers

Useful Related Tools

Frequently Asked Questions

What do the three columns in a hex dump mean?

The offset column shows the byte position within the file, usually in hexadecimal. The hex column shows each byte's actual value as two hex digits. The ASCII column shows the same bytes rendered as printable characters, letting you read any embedded text alongside its raw value.

Why do non-printable bytes show as a dot in the ASCII column?

Bytes below 32 (control characters) and many bytes above 126 don't correspond to a standard printable glyph, so a dot or similar placeholder is substituted to keep the column aligned. This makes it easy to visually distinguish stretches of binary data from stretches of readable text.

How do I identify a file's real type from its first bytes?

Many file formats start with a fixed sequence of bytes called a magic number or file signature, which stays the same regardless of the file's extension. Comparing the first several bytes shown in the hex dump against known signatures reveals the file's true format, even if it's been renamed.

What are the magic numbers for common file types like PNG, JPEG, PDF, and ZIP?

A PNG file starts with the bytes 89 50 4E 47 (which spell "PNG" partway through). A JPEG typically starts with FF D8 FF. A PDF starts with the ASCII text "%PDF" (25 50 44 46). A ZIP archive (which many other formats like .docx and .apk are built on) starts with PK, or 50 4B.

Why would a file extension say .jpg but the hex dump shows it isn't really a JPEG?

A file's extension is just a naming convention and can be changed without altering the actual file content, whether by mistake, a broken download, or intentional disguise. The hex dump's magic number reveals what the file actually is, independent of what its name claims.

How can a hex dump help diagnose a corrupted file?

Comparing the header bytes of a suspect file against a known-good file of the same format can reveal a missing or altered magic number, a truncated file that ends abruptly mid-structure, or unexpected bytes inserted where a fixed header is expected. This is often faster than trying to open the file in its native application and guessing at the error.

What does it mean to find 'embedded strings' in a binary using a hex dump?

Compiled programs, firmware images, and other binary files often contain runs of plain ASCII text, such as error messages, version numbers, or URLs, sitting alongside otherwise unreadable machine code. The ASCII sidebar in a hex dump surfaces these readable runs directly, which is a common first step in reverse engineering or debugging an unfamiliar binary.

Why are hex dump offsets usually shown in hexadecimal instead of decimal?

Hexadecimal aligns naturally with byte boundaries and common row widths like 16 bytes per line, since 16 is a clean power of two in hex (0x10). It's simply the convention most hex editors and dump tools follow, though the same offset could be shown in decimal without changing what it represents.

Browse Categories

Related Tools

View category