Convert text to hex, decode hex to text, translate ASCII to hex, and convert hex back into readable text directly in your browser. This online hex converter works as a text to hex converter, hex to text converter, ASCII to hex tool, hex decoder, hex encoder, and UTF-8 hex decoder.
Paste text or hexadecimal input, choose the conversion direction, and copy or download the result instantly. The converter supports UTF-8 text, ASCII-style byte conversion, emoji, accented characters, spaced hex bytes, continuous hex strings, 0x-prefixed values, and \x-prefixed bytes.
Convert text to hexadecimal
Decode hex back to readable text
Add a space between each hex byte
Use A-F instead of a-f
A hex converter changes text or bytes into hexadecimal and can decode hexadecimal back into readable text. It is the same idea developers use when reading raw bytes in a hex editor, debugger, or network packet — only with a friendlier interface.
This tool works as a text to hex converter, a hex to text converter, and a hex decoder for everyday strings. Paste a sentence on the left to convert text to hex, or paste a hex string on the right to translate hex to text without writing any code.
Because every byte maps to exactly two hexadecimal digits, hex is a compact way to inspect or share binary data. That makes the converter useful for programming, debugging, learning encoding, and any time you need to move readable text and raw bytes back and forth.
When you convert text to hex, the tool first encodes your characters as UTF-8 bytes, then converts each byte to a two-character hexadecimal value. Plain English letters, digits, and common punctuation use a single byte each, so each character becomes exactly two hex digits.
Examples of text to hex conversion:
Use the format options above the output field to control the result. Turn spaces off for a continuous hex string, switch to uppercase, or add a 0x or \x prefix per byte. This makes the page work as a string to hex converter, an online text to hex converter, and a quick way to convert text to hex code for source files, assignments, or debugging.
The hex to text side accepts the most common ways people paste hex. You can drop in a continuous hex string, hex bytes separated by spaces, 0x-prefixed bytes from a debugger, or \x-prefixed bytes from a string literal — the converter normalizes the input before decoding.
Each pair of hex digits becomes one byte, and the resulting bytes are decoded as UTF-8 so accented characters and emoji come back correctly. If the input is invalid (non-hex characters, an odd number of hex digits, or a malformed UTF-8 sequence) the tool shows a clear inline error instead of returning broken text.
Use this to decode hex to text, translate hex to text, convert a hex string to text, or convert hex bytes to text — for example when reviewing log output, raw protocol dumps, or hex literals embedded in code.
ASCII is a 7-bit character encoding for basic English letters, digits, and punctuation. UTF-8 is a superset of ASCII: every ASCII character is encoded the same way in UTF-8, but UTF-8 can also represent characters from any other language, plus emoji and symbols.
Because ASCII characters round-trip identically through UTF-8, this hex converter doubles as an ASCII to hex tool and a hex to ASCII text converter. Paste plain English text to convert ASCII to hex, or paste a hex string of single-byte values to decode hex to ASCII.
Examples:
If you need an ASCII to hex text converter for short strings, or a hex to ASCII text converter to read raw bytes from a packet capture or memory dump, paste the data into the matching side of the tool — no install or sign-up required.
Modern text is rarely pure ASCII. Names with accents, emoji, and characters from non-Latin scripts all use multi-byte UTF-8 sequences. This converter handles them by default, so it works as a full UTF-8 hex decoder, not just an ASCII tool.
When you convert text to hex, accented characters use 2 bytes, most CJK characters use 3 bytes, and most emoji use 4 bytes. When you decode hex to text, the same multi-byte sequences are reassembled and validated.
Examples:
If the bytes do not form a valid UTF-8 string, the decoder reports a malformed UTF-8 sequence error instead of silently producing replacement characters.
The hex to text mode accepts the formats you are most likely to encounter when copying hex from documentation, debuggers, or source code:
Uppercase and lowercase hex digits both work, and you can mix them freely. The text to hex side lets you choose the output style yourself: spaces on or off, uppercase or lowercase, and an optional 0x or \x prefix per byte.
All conversion runs locally in your browser. Your text and hex input never leave your device, never get uploaded to a server, and are not stored anywhere by the site. There are no API calls and no logs of your input.
That makes this online hex converter safe to use for snippets from internal logs, packet captures, or sensitive strings you would rather not paste into a remote service. Close the tab and the data is gone.
Privacy aside, working entirely client-side also means the tool is fast: every keystroke updates the output without a network round-trip.
No — this page is a text and data hex converter, not a color picker. Web colors are also written in hexadecimal (for example #1e90ff), but they describe RGB values rather than text bytes.
If you want to pick or convert website colors, use a dedicated color tool. This converter is focused on encoding and decoding text, ASCII, and UTF-8 bytes as hexadecimal.
A text to hex converter takes ordinary text, encodes each character as one or more UTF-8 bytes, and prints those bytes as two-digit hexadecimal values. It is the same idea you see when reading raw bytes in a hex editor, just with a more readable interface that you can use directly in the browser.
Switch the tool to Text to Hex, paste your text into the input field, and the hex output appears immediately. Use the format options to add spaces, switch to uppercase, or add a 0x or \x prefix per byte. Click Copy to copy the result, or Download .txt to save it to a file.
Switch the tool to Hex to Text and paste your hex input. The converter accepts continuous hex (48656c6c6f), spaced bytes (48 65 6c 6c 6f), 0x-prefixed bytes (0x48 0x65 0x6c 0x6c 0x6f), and \x-prefixed bytes (\x48\x65\x6c\x6c\x6f). It strips prefixes and whitespace, then decodes the bytes as UTF-8 so the original text is restored.
ASCII covers basic English letters, digits, and punctuation in a single byte per character. UTF-8 is a strict superset of ASCII: every ASCII character is encoded the same way, but UTF-8 can also represent accented characters, non-Latin scripts, and emoji using two, three, or four bytes per character. This tool always uses UTF-8, so it works as both an ASCII to hex converter and a UTF-8 hex decoder without any mode switch.
Yes. Because ASCII is a subset of UTF-8, paste your hex into Hex to Text mode and the tool decodes it as ASCII when every byte is below 0x80. It works as a hex to ASCII text converter, an ASCII to hex text converter, and a general-purpose hex decoder for everyday strings.
Yes. Paste your hex string into the Hex to Text side. The converter accepts spaced and continuous hex, plus 0x- and \x-prefixed bytes. Each pair of hex digits is treated as one byte and the result is decoded as UTF-8, so you can convert a hex string to text and recover the original characters — including accented letters and emoji.
Yes. In Hex to Text mode the tool strips every 0x and \x prefix it sees (case-insensitive) before decoding, so you can paste output from a debugger or source code without cleaning it up first. In Text to Hex mode you can choose to add a 0x or \x prefix to each byte of the output.
Yes. The encoder uses UTF-8, so accented characters become 2-byte sequences and most emoji become 4-byte sequences. For example, café becomes 63 61 66 c3 a9 and 😀 becomes f0 9f 98 80. Decoding the same hex restores the original characters.
No. This is a text and data hex converter for encoding and decoding bytes. Web colors are also written in hex (for example #1e90ff), but they describe RGB values, not text. For picking or comparing colors, use a dedicated color tool.
No. The hex converter runs entirely in your browser. Your input is never uploaded, never stored, and never sent to a third party. That makes it safe for sensitive snippets and convenient for offline-style workflows where you do not want to depend on a remote service.
Free online tools to convert, encode, and transform your text
Transform text case — uppercase, lowercase, title case & more
Convert text to Morse code and vice versa
Decode Morse code from audio files or microphone
Convert text to binary and vice versa
Encode and decode Base64 text
Encode and decode text using ROT13 cipher
Convert text to Unicode superscript where supported
Convert text to Unicode subscript where supported
Generate small caps, tiny superscript, and subscript text to copy and paste
Generate copy-paste Unicode strikethrough text instantly
Convert images to Base64 / Data URI
Encode and decode URL components, query strings, and percent-encoded text
Encode and decode HTML entities such as &, <, >, ", and '