EditSafely

Convert PNG to Hex

Dump the raw bytes of a PNG file as hexadecimal text. Runs entirely in your browser, so your data never leaves your device.

Input

Drop a file here, or click to browse

Files never leave your device

Output

The result appears here as you type.

Options

How to use Convert PNG to Hex

  1. 1. Upload your PNG. Add the file you want to inspect, such as icon.png. The tool reads its raw bytes directly rather than decoding the image into pixels.
  2. 2. Choose spacing and case. Turn on Space between bytes to insert a space after each hex pair for readability, and Uppercase digits to render letters as A through F instead of lowercase.
  3. 3. Copy the hex dump. Copy the resulting hex text, which starts with the PNG signature bytes like 89 50 4e 47, and paste it into a hex editor, forensic report or debugging note.

When to use Convert PNG to Hex

Convert PNG to Hex dumps the raw bytes of a PNG file as readable hexadecimal text, which is the level below pixels where file format debugging and signature verification actually happen. Convert PNG to Hex is for anyone who needs to see the exact bytes on disk rather than the decoded image.

  • Verifying a file signature. A developer investigating why an upload validator rejects a file dumps icon.png to hex to confirm the first bytes match PNG's standard 89 50 4e 47 signature.
  • Debugging a corrupted image file. A support engineer troubleshooting a broken image attachment inspects the raw hex bytes to spot truncation or a mismatched chunk length header.
  • Writing a binary file format tutorial. A technical writer explaining how PNG chunks work dumps a small sample file to hex to show readers the exact byte layout of the header and IDAT chunk.

Examples

Inspect file bytes

Input

icon.png

Output

89 50 4e 47 0d 0a 1a 0a …

About the Convert PNG to Hex tool

Convert PNG to Hex runs as plain JavaScript in your browser tab, with no server behind it. Dump the raw bytes of a PNG file as hexadecimal text. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's PNG Tools section, 108 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 2 settings, including Space between bytes and Uppercase digits, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Does Convert PNG to Hex cost anything?

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

Are my files uploaded to a server?

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.

Which files does Convert PNG to Hex accept?

It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.

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.

Related tools

All PNG Tools