About the Hex to Text Converter
This tool converts hexadecimal byte strings into readable text, decimal byte values, or binary byte strings. Developers, system administrators, students, and translators use it to inspect network data, debug files, or read hex dumps. The page runs entirely in your browser, so nothing you type is uploaded or stored on a server. You can paste messy hex with spaces or prefixes and pick Text (UTF-8), Decimal values, or Binary as the output format. The converter follows standard byte decoding rules per RFC 3629 for UTF-8, and it offers a one-click copy button for the result. Compared with many online converters, this tool stays simple, stays local, and gives easy decimal and binary output without file uploads.
How to use it
- 1Paste your hex string into the input box.
- 2Choose an output type: Text (UTF-8), Decimal values, or Binary.
- 3Click Convert to decode the bytes.
- 4Click Copy to copy the result to your clipboard.
Worked example
Input: 48656C6C6F Text (UTF-8): Hello Decimal values: 72 101 108 108 111 Binary: 01001000 01100101 01101100 01101100 01101111
How it works
1) Clean input: remove spaces, newlines, commas and prefixes like 0x or \x.
2) Validate: require an even number of hex digits; otherwise report an error or left-pad with 0 if explicitly chosen.
3) Split into byte pairs: for i from 0 to len-1 step 2 take s[i:i+2].
4) Convert each pair to numeric byte b = (hex_value(first_digit))*16 + (hex_value(second_digit)).
5) Build a byte array from all b values.
6) Interpret the byte array according to the chosen encoding: for Text use UTF-8 per RFC 3629; for Decimal output the numeric bytes; for Binary output each byte as 8 bits.
7) Return the decoded string or the numeric list as requestedSource: RFC 3629, UTF-8 standardUnicode FAQ, byte order mark (BOM). Last checked 7 November 2026.
What it is good for
- Runs entirely in your browser so nothing you type is uploaded.
- Outputs text (UTF-8), decimal bytes, or binary bytes with one click.
- Simple interface made for quick checks and short hex dumps.
- Text decoding uses UTF-8 only; other encodings may give wrong characters.
- Tool rejects odd-length hex strings unless you explicitly pad them.
Questions people ask
How do I convert hex to text here?
Paste your hex string, pick Text (UTF-8), and click Convert. The tool cleans common prefixes and spaces, converts each byte pair to a byte, then decodes the byte array as UTF-8.
What if the hex string has an odd number of digits?
The input is malformed because each byte needs two hex digits. You can add a leading 0 to the first digit or fix the source. The tool will report an error rather than guess by default.
Which encoding should I choose?
Start with UTF-8 for modern files and web data per RFC 3629. If text looks wrong and you know the source used a legacy code page, decode with an external tool that supports Windows-1252, Windows-1256, or UTF-16 with BOM.
Do you upload my pasted hex?
No. The converter runs in your browser using JavaScript. Nothing you type is sent to a server or stored by this site.
What input formats are accepted?
The tool accepts continuous hex, spaced hex, and common prefixes like 0x or \x. It strips spaces and prefixes before parsing. It does not accept non-hex characters.
Can I get per-byte decimal or binary values?
Yes. Choose Decimal values to see each byte as a decimal number, or Binary to see each byte as an 8-bit binary string. Use Copy to copy the full output to your clipboard.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.