Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Hex to ASCII, and text back to hex.

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 

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.

ASCII table, 0 to 127 (click a character to add it)

Everything happens in your browser. Nothing is uploaded.

How it works

Two hex digits, one byte.

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.

02 / ASCII

Numbers for letters

ASCII gives 128 characters a number. 72 is the capital H, 101 is e, 32 is a space.

03 / Beyond

Latin-1 and UTF-8

Past 127 the character set matters. The byte E9 is é in Latin-1, but C3 A9 is é in UTF-8.

Guide

How to convert hex to ASCII, with worked examples.

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.

How to use the hex to ASCII converter

  1. Paste your hex into Hex. The text appears in ASCII text straight away. Press Try hex to fill in an example.
  2. To go the other way, type or paste into ASCII text. The hex box fills in.
  3. Pick the Character set. Leave it on UTF-8 for normal text. Use ASCII to see which bytes are outside the 0 to 127 range. Latin-1, Windows-1252, Latin-9 and Windows-1251 are single byte sets for older text, and UTF-16 uses two bytes for each character, as Windows and Java do inside.
  4. Under Writing hex, choose the Style (plain pairs, 0x41, \x41 or %41), what goes Between bytes, and Capital letters.
  5. Switch on Hex is a hex dump when you paste output from hexdump -C or xxd. The offsets at the start of each line and the text column at the end are skipped.
  6. Press Copy above a box, or the Copy beside Hex dump for the dump view. Open a file shows the bytes of a small file, Save bytes as file writes the bytes to a .bin file, and the panel under the boxes shows the same bytes as decimal, octal and binary.

Worked example

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.

When the text is not plain ASCII

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.

Control codes

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:

HexDecimalNameWhat it is
000NULNull, often the end of a string
077BELBell
088BSBackspace
099HTHorizontal tab
0A10LFLine feed, the new line on Mac and Linux
0D13CRCarriage return, with LF on Windows
1B27ESCEscape, starts terminal colour codes
2032spaceThe first printable character
7F127DELDelete

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.

Reading a hex dump

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.

Common problems

  • An odd number of digits. The tool decodes the pairs it has and says the last digit was left out. A missing leading zero is the usual cause, so write 5 as 05.
  • A character that is not hex. The tool names the first one. Letters past F, such as G or Z, cannot be part of hex.
  • Garbage with some bytes right. The text is probably in another character set or is not text at all. Binary files such as images are not readable as text.

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

Good to know.

How do I convert hex to ASCII?

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.

How do I convert text to hex?

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.

What does 0x mean in front of a hex number?

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.

What is the difference between ASCII and UTF-8?

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.

Why does my hex show question marks or odd symbols?

The bytes may be in a different character set, or may not be text. Try UTF-8, then Latin-1.

Can I paste a hex dump with offsets?

Yes. Switch on Hex is a hex dump and paste lines from hexdump -C or xxd. The offsets and the text column are skipped.

Is the hex case sensitive?

No. 4a and 4A are the same byte. Capital letters only changes how the tool writes hex.

Can I open a file and see its 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.

What is UTF-16?

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.

Is my data uploaded?

No. Everything is worked out in your browser, and the text is not stored.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch