Hex to Text Converter: Free Online Decoder

Hex to Text Converter

Decode hex, hexdumps, C arrays and escapes to text in any encoding, or turn text and files into hex.

Text
More options

For groups of 2, 4 or 8 bytes, as in memory dumps: 6C6C6548 becomes 48 65 6C 6C.

ASCII characterControl codeZero80 to FFNot valid in this encoding

ASCII table: hex, decimal and character
HexDecimalCharacterName
000NULNull (\0)
011SOHStart of heading
022STXStart of text
033ETXEnd of text
044EOTEnd of transmission
055ENQEnquiry
066ACKAcknowledge
077BELBell (\a)
088BSBackspace (\b)
099HTHorizontal tab (\t)
0A10LFLine feed (\n)
0B11VTVertical tab (\v)
0C12FFForm feed (\f)
0D13CRCarriage return (\r)
0E14SOShift out
0F15SIShift in
1016DLEData link escape
1117DC1Device control 1
1218DC2Device control 2
1319DC3Device control 3
1420DC4Device control 4
1521NAKNegative acknowledge
1622SYNSynchronous idle
1723ETBEnd of transmission block
1824CANCancel
1925EMEnd of medium
1A26SUBSubstitute
1B27ESCEscape (\e)
1C28FSFile separator
1D29GSGroup separator
1E30RSRecord separator
1F31USUnit separator
2032SPSpace
2133!Exclamation mark
2234"Quotation mark
2335#Number sign, hash
2436$Dollar sign
2537%Percent sign
2638&Ampersand
2739'Apostrophe
2840(Left parenthesis
2941)Right parenthesis
2A42*Asterisk
2B43+Plus sign
2C44,Comma
2D45-Hyphen, minus
2E46.Period
2F47/Slash
30480Digit 0
31491Digit 1
32502Digit 2
33513Digit 3
34524Digit 4
35535Digit 5
36546Digit 6
37557Digit 7
38568Digit 8
39579Digit 9
3A58:Colon
3B59;Semicolon
3C60<Less-than sign
3D61=Equals sign
3E62>Greater-than sign
3F63?Question mark
4064@At sign
4165ACapital letter A
4266BCapital letter B
4367CCapital letter C
4468DCapital letter D
4569ECapital letter E
4670FCapital letter F
4771GCapital letter G
4872HCapital letter H
4973ICapital letter I
4A74JCapital letter J
4B75KCapital letter K
4C76LCapital letter L
4D77MCapital letter M
4E78NCapital letter N
4F79OCapital letter O
5080PCapital letter P
5181QCapital letter Q
5282RCapital letter R
5383SCapital letter S
5484TCapital letter T
5585UCapital letter U
5686VCapital letter V
5787WCapital letter W
5888XCapital letter X
5989YCapital letter Y
5A90ZCapital letter Z
5B91[Left square bracket
5C92\Backslash
5D93]Right square bracket
5E94^Caret
5F95_Underscore
6096`Grave accent, backtick
6197aSmall letter a
6298bSmall letter b
6399cSmall letter c
64100dSmall letter d
65101eSmall letter e
66102fSmall letter f
67103gSmall letter g
68104hSmall letter h
69105iSmall letter i
6A106jSmall letter j
6B107kSmall letter k
6C108lSmall letter l
6D109mSmall letter m
6E110nSmall letter n
6F111oSmall letter o
70112pSmall letter p
71113qSmall letter q
72114rSmall letter r
73115sSmall letter s
74116tSmall letter t
75117uSmall letter u
76118vSmall letter v
77119wSmall letter w
78120xSmall letter x
79121ySmall letter y
7A122zSmall letter z
7B123{Left curly bracket
7C124|Vertical bar, pipe
7D125}Right curly bracket
7E126~Tilde
7F127DELDelete

Codes 00 to 1F and 7F control devices and have no sign of their own, so the table shows their short names (RFC 20). UTF-8 uses the same 128 codes. Everything above 7F depends on the encoding.

Everything happens in your browser. What you type, paste or open is not sent to us and not stored. Only your settings are kept in this browser. Related: Hex to Decimal, Hex Calculator, Binary Translator, Base64 Encode and Decode, URL Encoder and Decoder.

A hex to text converter turns hexadecimal byte values such as 48 65 6C 6C 6F into readable characters, in this case the word Hello. It is made for developers, analysts and students who need to decode hex strings, hexdumps, C arrays or escapes in any text encoding, or turn text into hex. It is free and needs no sign-in.

What Is Hexadecimal Text?

Hexadecimal text is a way of writing bytes in base 16, where each byte (a value from 0 to 255) takes exactly two digits from 0-9 and A-F. The letter H is byte 48, a space is 20, and the line feed that ends a line on Linux is 0A.

Bytes only become characters once you know the encoding that maps them. In ASCII, one byte is one character and values run from 00 to 7F. In UTF-8, the encoding used by most of the web, characters beyond ASCII take two to four bytes: C3 A9 is the letter é and F0 9F 98 80 is a grinning-face emoji. Older encodings such as Windows-1252 or Shift_JIS give the same bytes different meanings, so identical hex can decode to different text.

Two ASCII facts help when you read hex by eye. Digits 0 to 9 sit at 30 to 39, and capital letters run from 41 to 5A. Each small letter is its capital plus 20, so 41 is A and 61 is a.

How to Use the Hex to Text Converter

You can decode a hex string in under a minute by following these steps.

  1. Pick Hex to text at the top of the tool. Choose Text to hex when you want to go the other way.
  2. Paste your data into the Hex box. Spaces, commas, 0x prefixes, hexdumps with offsets, C arrays and percent escapes such as %C3%A9 can all be read. You can also press Try an example and load a sample like Hexdump with offsets and text column.
  3. Set Text encoding if you know it. If you do not, open the Encodings tab, which lists likely encodings with a reason for each and a Use this encoding button.
  4. Open More options when the input is not plain hex. Under Read the input as, the default Find out works out the format, or you can force one: every hex digit, hexdump with offsets, text with escapes, decimal codes, binary or Base64.
  5. Read the decoded text in the output box. If the input has typing mistakes, the tool lists each problem so you can fix it.
  6. Copy the decoded text, or use the tabs for Bytes, File type and Checksums when you need more than the text.

Worked Example: Decoding 11 Bytes

Paste 48 65 6C 6C 6F 20 57 6F 72 6C 64 with the encoding set to UTF-8 and the output reads Hello World. That is 11 bytes and 11 characters, because every byte is plain ASCII.

HexCharacterWhy
48HCapital letter
65e45 plus 20
6ClAppears 3 times
20(space)Separates the words
57WCapital letter

Now try C3 A9. In UTF-8 it is one character, é, made from two bytes. Read the same bytes as Windows-1252 and you get the two characters é, the classic garbled look. That difference tells you the encoding was chosen wrongly.

One more case: memory dumps often store 4-byte groups with the last byte first. The value 6C6C6548 is little-endian, so setting Order inside groups to Last byte first (little-endian) turns it into 48 65 6C 6C, which reads Hell.

How Do You Read and Act on the Results?

A good result is readable text with no stray symbols and a byte count that matches what you expected. Anything else points to a specific fix.

Readable text with odd accents

Characters like é, ’ or ü mean UTF-8 bytes were read as a single-byte encoding. Switch Text encoding to UTF-8. If the opposite happens and you see question marks or replacement symbols, the data may be in an older encoding such as Shift_JIS, which has its own example in the tool.

Question marks or removed bytes

The setting Bytes that are not valid text controls what happens to bytes the encoding cannot read. You can show them as ?, replace them with the Unicode replacement character (U+FFFD), or leave them out. A few invalid bytes usually mean a damaged string. Many of them mean you chose the wrong encoding or the data is binary, not text.

The Bytes, Encodings and File type tabs

  • Bytes shows the raw values. Use Go to offset to jump to a position and read the numbers that start at that byte as little-endian or big-endian.
  • Encodings ranks likely encodings and explains why. Treat the order as an estimate, because many bytes are valid in several encodings.
  • File type is based on the first bytes, the signature, not on a file name. A PNG image starts with 89 50 4E 47 0D 0A 1A 0A, and a PDF starts with 25 50 44 46.
  • Checksums let you confirm that two copies of the same data match.

Line breaks

The line break setting shows how new lines are written. LF is 0A (Linux, macOS, web). CR LF is 0D 0A (Windows, HTTP, email). If decoded text runs together or shows extra blank lines, check which pair your source uses.

Which Input and Output Styles Does It Support?

The tool reads many ways of writing the same bytes, so you rarely have to clean data first. Spaced bytes, plain runs, 0x lists, escapes, percent codes, C arrays, Python bytes, JavaScript Uint8Array, Java byte arrays, SQL literals like X'48656C' and both xxd-style and hexdump -C style dumps are all covered by the output styles in Text to hex mode.

In Text to hex mode you can also choose the separator (space, comma, colon, hyphen, none or your own), the number of bytes per line, and capital (6C) or small (6c) letters. The option to start with a byte order mark applies to Unicode only. In UTF-8 that mark is EF BB BF.

Who Is a Hex Decoder Useful For?

A hex decoder helps anyone who meets bytes where they expected words. These are common situations.

  • Debugging network traffic: decode a payload copied from a packet capture to see whether the body is JSON, form data or something else.
  • Reading memory or file dumps: paste a hexdump with offsets and read the text column without the offset numbers getting in the way.
  • Firmware and embedded work: turn a C array with comments into the string it represents.
  • Database and URL work: decode SQL hex literals or percent-encoded strings to see the original text.
  • Security puzzles and CTF challenges: check hex that hides another layer, such as Base64.
  • Learning: use the ASCII table at the bottom, with hex, decimal, character and name columns plus a Find a code search, for homework or quick lookups.

Best Practices and Troubleshooting Tips

Most failed decodes come from a handful of avoidable input mistakes.

  • Count your digits. Each byte needs two. An odd count means a digit is missing or extra, and the tool flags it with a suggested fix.
  • Tell the tool about offsets. If you paste a hexdump, choose Hexdump with offsets so the left column (such as 00000010) is not decoded as data.
  • Do not confuse hex colors with text. A value like #FF5733 is an RGB color, not a message. For colors, try a color palette generator instead.
  • Watch for look-alike characters. The letter O is not zero, and letters after F are not hex digits. Stray characters are reported as problems.
  • Decode in layers. If the output looks like random letters ending in =, it may be Base64. Pass it to a Base64 encode and decode page for the next step.
  • Format what you recover. If the text is minified HTML, CSS or JavaScript, a code beautifier makes it readable.
  • Compare before and after. To check two decoded versions of a config or payload, use a code diff tool.

For scripting, the same job takes one line in many languages. In Python, bytes.fromhex("48656c6c6f").decode("utf-8") returns Hello. On Linux, xxd -r -p converts plain hex back to bytes. The converter on this page is faster when you also want error reporting and encoding guesses.

Limitations and Accuracy Notes

Hex has no label saying which encoding it uses, so the encoding ranking is an informed estimate and your own judgment should have the final say. If the bytes form an image, archive or program, the text view will look like noise, and the File type tab is the better guide. The ASCII table covers codes 0 to 127 only, so characters such as é or 日 appear only through a text encoding.

For many jobs, the fast route is to paste your hex into the converter above, check the output and the encoding tab, then adjust the options once. Explore more utilities in the Web Developer Tools collection, and try the Hex to Text Converter on this page with one of the built-in examples.

Frequently Asked Questions

How do I convert hex to text?
Paste your hex into the Hex box with Hex to text selected, and choose a text encoding such as UTF-8. The decoded text appears immediately. For example, 48 65 6C 6C 6F becomes Hello. Spaces, commas and 0x prefixes are accepted, so you do not need to clean the input first.
How do I convert a hex dump to text?
Paste the dump and set Read the input as to Hexdump with offsets under More options. This tells the converter to ignore the offset column at the left and the text column at the right, so only the real byte values are decoded into text.
What is hexadecimal text?
Hexadecimal text is a base-16 way of writing bytes, using two digits from 0-9 and A-F per byte. For example, 41 is the letter A in ASCII and 0A is a line feed. Hex is common in dumps, network data and source code because it is compact and exact.
Why does my decoded hex show strange characters?
Strange characters usually mean the wrong text encoding was used. The bytes C3 A9 are é in UTF-8 but é in Windows-1252. Check the Encodings tab for likely matches, switch Text encoding, or choose how invalid bytes are shown. Binary data such as images will always look like noise.
Can I convert text to hex, and is it free?
Yes. Select Text to hex, type or paste your text, and pick an Output style such as bytes with spaces, a C array, Python bytes or a SQL literal. The Hex to Text Converter is free and needs no sign-in.
How does the converter know which encoding my hex uses?
Hex itself carries no encoding label, so the Encodings tab ranks likely options and gives a reason for each. Treat the ranking as an estimate, because many bytes are valid in several encodings. Read the decoded text yourself and pick the encoding that makes sense.
Recommended

Explore VPN options

A VPN changes your network exit. It does not guarantee anonymity.

Hide Your IP Encryption Network coverage
Protect My IP Now