| Character | Unicode code point | This tool (UTF-16 code units) | UTF-8 bytes |
|---|---|---|---|
| H | U+0048 | 48 | 48 |
| é | U+00E9 | E9 | C3 A9 |
| “ (curly quote) | U+201C | 201C | E2 80 9C |
| 😀 | U+1F600 | D83D DE00 | F0 9F 98 80 |
Good Uses for This Tool
- Learning how letters, digits, and symbols map to character codes
- Checking a short string for hidden characters, extra spaces, or unusual quotation marks
- Producing hex values for tutorials, documentation, and classroom exercises
- Quick comparisons while debugging text that contains only basic English characters
Uses We Advise Against
- Hiding passwords, API keys, or personal data. Hex isn't encryption. Anyone can turn hex back into readable text in seconds.
- Generating byte data for files, network protocols, or databases without checking the encoding first. See the technical notes below.
- Firmware, payment payloads, smart contracts, or any production system where one wrong byte can cause failures or financial loss, unless you verify the output independently.
- Converting numbers between bases. Our tool treats digits as text characters. Typing 47 gives 34 37, the codes for the characters "4" and "7", not the hexadecimal value of the number 47.
- Color codes or hash values. Web color codes (like #FF5733) and hash outputs (such as SHA-256) are also written in hex, but they're created in completely different ways, and this tool doesn't produce them.
Technical Notes for Developers
Which encoding the output uses
Our converter outputs UTF-16 code units, which is how JavaScript stores strings internally. It doesn't output UTF-8 bytes, and there's no option to switch encodings.
For standard ASCII characters (codes 00 to 7F, which covers English letters, digits, and common punctuation), the values match UTF-8 and ASCII exactly. Beyond that range, the results differ:
Most files, web pages, APIs, and databases today store text as UTF-8. If you paste our output into a system that expects UTF-8 bytes, any text with accented letters, non-Latin scripts, symbols, or emoji will come out wrong. Emoji and some rare characters appear as surrogate pairs (two code units), which is expected behavior and not a bug.
What the byte count means
The "total hex bytes" figure in the statistics panel reflects how our tool counts its own output. It may not match the size the same text would take up in a UTF-8 file, in a database column, or on disk.
Invisible and look-alike characters
Text copied from word processors, PDFs, websites, and chat apps often contains characters you can't see or easily tell apart. These include curly quotes instead of straight quotes, non-breaking spaces instead of regular spaces, en dashes instead of hyphens, and zero-width characters. Each of these produces a different hex value. If your output looks unexpected, the input probably contains one of them. That's often exactly the problem the tool can help you track down.
Line breaks
Browsers usually convert line breaks in text boxes into a single line-feed character (0A). If your original file uses Windows-style line endings (0D 0A), the output may not match the file byte for byte.
Delimiters and letter case
Space, colon, comma, no separator, and 0x prefix formats are provided for convenience. They may not match the exact syntax a particular programming language, assembler, or tool requires, so adjust the format before using it in code. Hex letters are always shown in uppercase. Most systems treat hex as case-insensitive, but tools that compare strings literally may not.
About "Secure" and Your Privacy
Conversion runs in your browser as you type. Even so, we recommend never pasting passwords, private keys, access tokens, or other secrets into any online tool, ours included. Browser extensions, shared or public computers, and clipboard history apps can all expose what you type or copy. For information about the general site data we handle, see our Privacy Policy.
When we describe our tools as secure, we mean they're built to work in your browser without requiring an account. We don't mean that hexadecimal output protects your information. It doesn't.
Copying Your Output
The Copy Hex button puts the result on your clipboard. Some apps automatically reformat pasted text, for example by changing spacing, adding line breaks, or converting characters. Check what you've pasted before relying on it.
Translated Versions of This Site
Text to Hex is available in 18 languages. Every version uses the same conversion method, but technical terms like "code unit" or "delimiter" may be translated a little differently. When in doubt, the English version is the reference.
Our Limits
We test the converter and correct problems when we find them. However, we can't promise the website is free of bugs, works identically in every browser, or will always be available. Text to Hex is a free educational and utility tool. Text to Hex Tools isn't responsible for data loss, software bugs, failed integrations, security incidents, or any other loss resulting from use of its output. Before using converted values in a real project, verify them with the tools and documentation for your target system.
Updates to This Disclaimer
If we add features such as an encoding selector or hex-to-text conversion, this disclaimer will be updated. The date at the top shows the latest version.
Contact
Did you get output you didn't expect, or would you like a new feature? Contact us through our Contact Us page, and include the exact text you entered along with the delimiter you selected.