Text to HEX
Character by character, your text in uppercase hex
- 100% Free
- Files stay private
- Works in your browser
Each character is converted to its hexadecimal character code (and back) entirely in your browser. Use Swap to run the inverse conversion.
How it works
Type your text
Type or paste the text you want to encode into the Text box. Each character will get its own hex code.
See the hex codes
The hex codes appear as you type, one per character, in uppercase and separated by spaces. Press Convert to run it again.
Copy the hex codes
The codes are in the Hex result below the buttons. Press Copy to put all of them on your clipboard.
Turn any text into its hexadecimal character codes in a click: clean, uppercase, space-separated hex generated instantly in your browser.
What is Text to HEX?
Text to HEX is an encoder that converts each character of your text into its hexadecimal (base-16) character code. Working one Unicode code point at a time, it produces space-separated, upper-cased hex values, so "Hi" becomes 48 69. It matters because hex is the compact, readable way developers inspect and share the raw byte or code-point values behind text.
Who Benefits from This Tool
- Developers: generate hex character codes for debugging, protocol work, or building test fixtures.
- Students: learn how characters map to hexadecimal values in number-system coursework.
- Security researchers: encode strings into hex for payloads, comparisons, or documentation.
- Technical writers: show the exact code points behind tricky or invisible characters.
- QA engineers: capture hex representations to reproduce encoding-related bugs precisely.
Key Features
- Per-character encoding: every character becomes its own hex code point, keeping the mapping clear.
- Uppercase hex output: results are upper-cased for consistent, easy-to-read values.
- Full Unicode support: emoji and accented letters encode correctly as whole code points.
- Space-separated format: tokens are cleanly delimited so the output stays fully reversible.
- Swap direction: flip the tool in place to decode hex back into text.
- Try sample and copy: load an example instantly and copy the result with one click.
- Client-side only: your text is processed in the browser and never uploaded.
How to Use
- Type or paste the text you want to encode into the input box.
- Click Convert to generate the hexadecimal character codes.
- Read the space-separated hex in the highlighted output and copy it if needed.
- Use Swap to decode the hex back to text, or Reset to clear and begin again.
Common Use Cases
- Inspecting the exact code points behind text that renders unexpectedly.
- Creating hex-encoded test data for parsers and encoders.
- Documenting special or non-printing characters in a readable form.
- Preparing hex strings for low-level protocol or firmware work.
- Teaching the relationship between characters and hexadecimal values.
Tips and Best Practices
- Each output token is one character's code point, not a raw UTF-8 byte stream, so multi-byte characters appear as a single hex value.
- Keep the spaces between tokens if you plan to decode the result later. They keep the mapping reversible.
- Use Swap right after converting to confirm your hex round-trips back to the original text.
- Load the sample first to see the expected uppercase, space-separated style.
- To convert a single whole number between bases, use a numeric base converter rather than this per-character encoder.
Limitations and Notes
This tool runs entirely in your browser, so nothing you type is sent to a server. It encodes text per character into hexadecimal code points and upper-cases the output; it does not produce a raw UTF-8 byte dump. Values represent Unicode code points, so an astral character (like an emoji) yields one hex token rather than several bytes. For empty input, it will prompt you to enter some text first.
FAQs
Hex output is upper-cased for readability, for example 48 69 for "Hi".
They are Unicode code points, one hex value per character, not a byte-level UTF-8 encoding. Multi-byte characters therefore appear as a single token.
Yes. The encoder walks the input by code point, so emoji and accented characters convert to a single, correct hex value each.
Yes. After converting, click Swap to run the inverse and decode your hex codes back into readable text.
No. All encoding happens locally in your browser, so your input never leaves your device.
The space separator delimits each character's code so the output stays unambiguous and can be decoded back exactly.