Create a File from Hex Bytes
Convert bytes in hex form to a file with any extension. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Convert bytes in hex form to a file with any extension.
Type or paste above to see the result here.
What you paste never leaves this tab
Create a File from Hex Bytes 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 Create a File from Hex Bytes
- 1. Paste the hex bytes. Paste the bytes in any hex notation: spaced pairs, one continuous run, 0x or \x prefixes, a C array, or a whole xxd or hexdump -C dump with its offsets and text column.
- 2. Name the file. The type is detected from the first bytes, so a PNG shows Type PNG image, previews as a picture and saves as bytes.png. Set File name, or pick an Extension chip; if it disagrees with the bytes, a warning says so.
- 3. Download the generated file. Click download to save a file whose bytes exactly match what you entered. Use it to recreate a binary artifact from a hex listing.
When to use Create a File from Hex Bytes
Create a File from Hex Bytes writes raw bytes, specified as hex, directly into a downloadable file with the extension you choose. It runs entirely in your browser and suits any situation where you have a byte-exact hex listing and need it back as an actual file.
- Reconstructing a file from a hex dump. A support ticket or forum post includes a hex dump of a small corrupted or missing file, and you want to rebuild the original bytes into a usable file.
- Crafting a minimal test file for a parser. You are testing a file format parser and need a tiny file with an exact, hand-crafted byte sequence to trigger a specific edge case.
- Recreating a firmware or memory image sample. You have a short byte sequence documented in hex from a hardware datasheet and want to save it as a binary file to feed into a flashing or analysis tool.
Examples
Bytes to file
Input
48 65 6c 6c 6f
A tiny PNG
Input
89504e470d0a1a0a0000000d494844520000000200000002080600000072b60d240000001849444154789c63f8dfc1f09fa1e2ff7f06860501ff410000572f0ae87b6aa6e50000000049454e44ae426082
A C array
Input
{0x25, 0x50, 0x44, 0x46}About the Create a File from Hex Bytes tool
Create a File from Hex Bytes does its work locally, right in the browser. Convert bytes in hex form to a file with any extension. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Hex Tools collection on EditSafely, a set of 108 small, focused Hex utilities that share the same instant, private workspace.
You can shape the output with 2 settings, including File name and Extension (auto follows the bytes), and the result refreshes the moment you change one. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. 3 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
Is Create a File from Hex Bytes free to use?
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?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
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?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I save the output?
Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.