Hex encode and decode

Turn text or a file into hexadecimal, decode hex back to text, or show a hex dump.

Runs in your browser. Your input is not uploaded.

Correctness last checked 2026-11-13. How we verify

Loading the tool…

What it does, how to use it, and questions

What it does

Hexadecimal writes each byte as two digits from 0–9 and a–f. It is how checksums, tokens and packet dumps are shown when the raw bytes would not survive as text.

Text is encoded as UTF-8. Decoding accepts spaces, colons, commas and a 0x before a byte. A hex dump shows 16 bytes per row with the ASCII beside them.

How to use it

  1. Choose Text to hex, Hex to text, or Hex dump.
  2. Paste the text or the hex, or open a file up to 2 MB.
  3. Copy the result. Upper case and a separator are optional when encoding.

Example

Input
hello
Output
68656c6c6f

Things to watch for

  • The number-base tool converts one integer. This tool converts a sequence of bytes. FF there is the number 255; here it is one byte.
  • A file over 2 MB is refused. Hash it on the SHA-256 page instead of putting every byte in the box.
  • If the bytes are not UTF-8, Hex to text says so. Use Hex dump to see them.

Questions

How do I convert text to hex?
Choose Text to hex and paste. hello is 68656c6c6f in UTF-8.
Can I paste 68:65:6c:6c:6f or 0x68?
Yes. Spaces, colons, commas, underscores and 0x prefixes are ignored.
What is a hex dump?
Each row is an offset, 16 bytes in hex, and those bytes as ASCII. Bytes that are not printable become a dot.
Is the file uploaded?
No. It is read in this page. Files over 2 MB are refused because the hex would be too large to show.