String to Hex Converter — Text to UTF-8 Hex Bytes & Back
Convert text to UTF-8 hex bytes and back. Pick from five separators on encode; decode auto-strips any common separator.
How to use
- 1 Pick Text → Hex or Hex → Text.
- 2 Choose a separator on encode — space, none, 0x, \x, or comma.
- 3 Paste your input. Decode auto-strips separators and prefixes.
- 4 Copy the result.
Why use this tool
- UTF-8 aware — emoji and CJK characters round-trip cleanly.
- Five output separators including C / Python \x escape and 0x-prefixed.
- Auto-detect on decode — paste hex with any common separator.
- No upload, no logs, no dependencies.
Frequently asked questions
Why does an emoji turn into 4 hex bytes?
UTF-8 encodes most emoji as 4 bytes. Each byte becomes 2 hex digits, so one emoji becomes 8 hex characters.
Can I paste hex that came from a hex dump?
Yes — the decoder strips whitespace, commas, 0x, and \x prefixes before parsing. The only requirement is an even total of hex digits.
Difference vs the UTF-8 Converter?
Both decode hex bytes back to text. This tool focuses on text → hex with separator pickers; the UTF-8 Converter also emits decimal bytes and \u{HEX} codepoint escapes.
Need text → binary instead?
Use our String to Binary Converter — produces 8-bit groups with optional spacing.
What is String to Hex Converter?
A String to Hex Converter is a tool that converts text into UTF-8 hexadecimal bytes and converts hex back into text. On encoding it offers a choice of five separators between bytes, and on decoding it auto-strips any common separator from the input. The conversion runs in the browser, keeping text on the device.
Features
Text ↔ UTF-8 hex
Encode characters to their exact UTF-8 byte values and decode hex back to text.
Separator options
Pick space, comma, 0x, or none on encode; decoding strips any common separator.
100% private
Runs client-side — your text never leaves the browser.
Example
Input
Zerethon
Output
5a 65 72 65 74 68 6f 6e
Common use cases
-
1
Debug encoding issues
See the exact bytes behind a string to spot mojibake or stray BOM/whitespace.
-
2
Build hex literals
Produce hex byte sequences for code, protocols, or firmware.
-
3
Read a hex dump
Decode a captured hex string back into human-readable text.
Zerethon's string-to-hex converter turns text into its UTF-8 byte values in hexadecimal (Base16, RFC 4648) and decodes hex back to text, all in your browser. Choose a byte separator on encode; decoding auto-strips common separators. Nothing is uploaded.
- Category
- Developer
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
References
Privacy
Your data never leaves your browser unless explicitly stated. String to Hex Converter runs entirely client-side — no server upload, no logging, no tracking of your input.
Compare
Learn the basics
Related tools
JSON Formatter
Format, validate, and minify JSON online. Free, no signup — your data never leaves your browser.
Open toolSQL Formatter
Format SQL queries online — beautify MySQL, PostgreSQL, SQLite, SQL Server, Oracle, and BigQuery.
Open toolUUID Generator
Generate UUIDs online — v1, v4, v7, and Nil. Bulk generation up to 10,000. Free, no signup.
Open toolPassword Generator
Generate strong, cryptographically random passwords. Configurable length and character sets — runs in your browser.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.