01 / Bytes
Pairs of digits
Hex uses 0 to 9 and A to F. Two digits cover 0 to 255, one byte. 48 is 4 times 16 plus 8, which is 72.
Free tool
Paste hex and read the text, or type text and get its hex bytes. The two boxes stay in step. Hex can be plain pairs, 0x41, \x41, %41 or a whole hex dump with offsets, and the bytes can be read as ASCII, UTF-8, UTF-16, Latin-1 or Windows-1252. Open any small file to see its bytes, save the bytes back out, and see the same numbers as decimal, octal and binary. A hexdump view and a clickable ASCII table sit underneath. It runs in your browser and sends nothing.
Need a custom tool, app or website? Contact us →The same bytes in other bases (first 256)
Hex dump
Reading the bytes
Writing hex
Your settings are remembered in this browser. The text is not. The link holds the settings and both boxes after the # sign, which browsers never send to a server. Drop a file of 200 KB or less on either box to read its bytes.
Everything happens in your browser. Nothing is uploaded.
How it works
01 / Bytes
Hex uses 0 to 9 and A to F. Two digits cover 0 to 255, one byte. 48 is 4 times 16 plus 8, which is 72.
02 / ASCII
ASCII gives 128 characters a number. 72 is the capital H, 101 is e, 32 is a space.
03 / Beyond
Past 127 the character set matters. The byte E9 is é in Latin-1, but C3 A9 is é in UTF-8.
Guide
A hex to ASCII converter turns hexadecimal numbers into the text they stand for, and a text to hex converter does the opposite. Each pair of hex digits is one byte, and in ASCII each byte from 0 to 127 is one character. This converter also reads bytes above 127 as Latin-1 or UTF-8, accepts the ways hex is usually written in code and logs, and shows a hexdump view of the same bytes.
Take 48 65 6c 6c 6f. Read each pair as a base 16 number: 48 is 4 times 16 plus 8, which is 72. 65 is 6 times 16 plus 5, which is 101. 6c is 6 times 16 plus 12, which is 108. 6f is 6 times 16 plus 15, which is 111. In ASCII, 72 is H, 101 is e, 108 is l and 111 is o, so the text is Hello. Pasting it as one run, 48656c6c6f, gives the same result, and so do 0x48,0x65,0x6c,0x6c,0x6f, \x48\x65\x6c\x6c\x6f and %48%65%6c%6c%6f.
ASCII stops at 127. The letter é is not in it. Latin-1 puts é at byte E9, one byte. UTF-8, the encoding most of the web uses, writes it as two bytes, C3 A9. So the hex 43 61 66 c3 a9 reads as Caf followed by é in UTF-8, and as the five characters Caf, then a stray capital A with a tilde (Ã) and a copyright sign in Latin-1. If you see strange characters like that, switch the Character set. With ASCII selected, any byte above 127 shows as the replacement character and the tool tells you so.
The first 32 ASCII codes, and 127, do not print. They were made to control machines. Switching on Show control codes by name writes each one as its short name in angle brackets, for example <LF>. The names you will meet most:
| Hex | Decimal | Name | What it is |
|---|---|---|---|
| 00 | 0 | NUL | Null, often the end of a string |
| 07 | 7 | BEL | Bell |
| 08 | 8 | BS | Backspace |
| 09 | 9 | HT | Horizontal tab |
| 0A | 10 | LF | Line feed, the new line on Mac and Linux |
| 0D | 13 | CR | Carriage return, with LF on Windows |
| 1B | 27 | ESC | Escape, starts terminal colour codes |
| 20 | 32 | space | The first printable character |
| 7F | 127 | DEL | Delete |
The ASCII table under the tool lists all 128. Click a character to add it to the text box and see its hex. The short names match the Unicode C0 Controls and Basic Latin chart (version 18.0), checked 24 Oct 2026.
A hex dump prints bytes sixteen to a line, with an offset on the left and a text column on the right where bytes that cannot print are shown as a dot. The Hex dump panel writes the same layout as hexdump -C, with the offset in hex, a gap after the eighth byte, and the text column between bars. The end of the dump gives the total number of bytes in hex. Unlike that command, long runs of repeated lines are not folded into a star.
For full text to binary work, with more room for long binary strings, use the binary translator. To change a number between bases, use the number base converter.
Questions
Paste the hex into the Hex box. Each pair of digits is turned into one byte, and each byte into a character. The text appears in the other box.
Type or paste into the ASCII text box. The hex box shows each character as a pair of hex digits. Use the style and separator options to match the format you need.
It is a marker used in many programming languages that says the number after it is in hex. This tool ignores 0x, \x and % when it reads hex.
ASCII covers 128 characters. UTF-8 uses the same bytes for those 128, and uses two to four bytes for everything else, such as é or an emoji.
The bytes may be in a different character set, or may not be text. Try UTF-8, then Latin-1.
Yes. Switch on Hex is a hex dump and paste lines from hexdump -C or xxd. The offsets and the text column are skipped.
No. 4a and 4A are the same byte. Capital letters only changes how the tool writes hex.
Yes, any file up to 200 KB. Press Open a file or drop it on a box. The bytes appear as hex, and the text box shows how they read in the character set you chose. Binary files such as images show as odd symbols in the text box, which is normal.
A way to write text that uses two bytes for most characters. Little endian puts the low byte first, so A is 41 00. Big endian puts the high byte first, so A is 00 41.
No. Everything is worked out in your browser, and the text is not stored.