Encode File to Hex (Base16)

This online Hex (Base16) encoding tool helps you encode a file from local or URL to Hex without uploading the file. Expand to read more.

Hex file encoding

Hex converts binary bytes to printable text using two hexadecimal digits per byte. This page reads a local file and produces its Hex representation.

How to use this tool

Choose a file, select any available Hex formatting options, then encode it. Copy the text or download the result. Processing is performed locally in your browser.

Common uses

Hex is useful for API payloads, test fixtures, certificates, embedded resources, and inspecting binary data in text-only environments. Hex is easy to compare byte by byte but doubles the data size.

Important limitations

Hex is not encryption and does not protect sensitive files. Very large files may exceed browser memory. When decoding the generated text later, its letter case does not matter, but every hexadecimal digit must remain intact.

Frequently asked questions

Will the decoded file keep its original filename?

Encoded text does not normally contain a filename or media type. Choose an appropriate download name and extension yourself.

Why is the recovered file corrupt?

Check for missing characters, altered line breaks, the wrong variant or alphabet, and accidental decoding as character text instead of bytes.

Input
File
Drag and drop the file here or click to select a file. It will process locally and won't be uploaded.
Output
Settings