Code · Made a little simpler

Base64 and Hex File Converter

Convert local files to Base64 or hex and restore the original bytes. Paste encoded text or read it from a file, inspect the result and download it locally.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Base64 and Hex File Converter: how to use it

  1. Select Encode or Decode and choose Base64 or Hexadecimal. Use a local file or pasted text.
  2. Run the conversion and inspect the byte count and available text preview.
  3. Copy the complete text or download the result to check its contents.

Limits and notes

Up to 12 MiB of original or decoded bytes. Pasted text and encoded files use UTF-8. The preview shows up to 8,192 characters. Downloads contain the complete result.

How your privacy works →

Base64 and Hex File Converter: common questions

Can this recover files containing zero bytes?

Yes. Zero bytes are valid throughout a binary file, including at its beginning and end.

Can I paste spaced hexadecimal byte pairs?

Yes. ASCII whitespace is ignored. Every byte still needs two hex digits.

Guides