Text to Hex Converter
Convert text to hexadecimal and hex back to text, with your choice of separator, live.
Direction
Separator
Converted live as you type. Nothing leaves your browser.
How to convert text to hex online
Pick a direction
Choose Text to hex to encode your words, or Hex to text to decode a hex string back into readable text.
Choose a separator
When encoding, pick spaces, no separator, 0x prefixes, or backslash-x escapes so the hex matches wherever you plan to paste it.
Type and copy
Type or paste your input and the result appears live below, ready to copy with one click.
Why use this tool
Both directions
Encode text to hexadecimal, or decode a hex string straight back into text, without switching to another tool.
Four separator styles
Output spaced pairs, one solid string, 0x-prefixed bytes for source code, or backslash-x escapes for string literals, plus an uppercase toggle.
Tolerant decoding
Paste hex with spaces, line breaks, commas, colons, 0x prefixes, or backslash-x escapes mixed in. It all parses the same way.
Real UTF-8 with an honest byte count
Accented letters and emoji encode to their true multi-byte form, and a quiet line shows the character and byte totals so nothing is hidden.
Clear error messages
An odd digit count or a character that is not valid hex is named for you instead of producing silent garbage.
Runs entirely in your browser
Everything happens on your device as you type. Your text is never uploaded or stored.
About this tool
Every character a computer holds is really a number, and hexadecimal is the compact, two-digit-per-byte way people read those numbers. This converter shows that layer directly: type a word and watch it become the exact bytes stored in memory. The letters Hi, for example, become 48 69, one hex pair per byte.
It works in both directions. Switch to decode, paste a hex string from a hex dump, a config file, a color value, or a puzzle, and it turns back into text. Decoding is forgiving: spaces, line breaks, commas, colons, 0x prefixes, and backslash-x escapes are all stripped before parsing, so almost any hex you paste just works. If a stray character sneaks in or the digit count is odd, the tool names the problem instead of guessing.
Encoding uses real UTF-8, so a plain English letter takes one byte while an accented letter takes two and an emoji takes four, and a quiet line reports the true character and byte totals. Pick the separator that matches where the hex is going: single spaces for readability, none for a tight string, 0x prefixes for source code, or backslash-x escapes for string literals. To convert whole numbers between bases instead of text, use the number base converter. For the binary or decimal view of the same bytes, see text to binary, and for a transport-safe encoding try Base64.
Frequently asked questions
- Why is each character two hex digits?
- One byte is eight bits, and eight bits fit exactly in two hexadecimal digits, from 00 to ff. Basic characters are one byte, so they show as one two-digit pair, with a leading zero added when needed to keep every pair aligned.
- Does it handle emoji and accented characters?
- Yes. Text is read as UTF-8, so an accented letter becomes two bytes, many symbols three, and an emoji four. Each byte still shows as one hex pair, and the counter under the result reports the true character and byte totals.
- What hex formats can I paste to decode?
- Almost any. Pairs can be separated by spaces, line breaks, commas, colons, or nothing at all, and 0x prefixes or backslash-x escapes are removed automatically. The digits are not case sensitive, so 4a and 4A both work.
- What happens if my hex is invalid?
- If the digit count is odd, or a character outside 0-9 and a-f is present, the result area shows a short message pointing to the problem instead of returning wrong text.
- Is my text uploaded anywhere?
- No. Everything runs in your browser; nothing is sent to a server. Your text is never uploaded, stored, or logged.
Related tools
Text to Binary
Convert text to its binary, hex, or decimal byte representation and back, live.
Number Base Converter
Convert a number between binary, octal, decimal, and hexadecimal, all four shown at once.
Base64 Encode & Decode
Encode text, files, and images to Base64, decode it back, and get a ready-to-use data URI.
Angle Converter
Convert an angle between degrees, radians, gradians, turns, arcminutes and arcseconds, with a degrees-minutes-seconds breakdown.
Area Converter
Convert area between metric and imperial units instantly.
Binary to Decimal Converter
Convert a binary number to its decimal value, with hexadecimal and octal readouts.