Choose your tool
No tools match your search.
String to Hex Converter
Convert strings to space-separated UTF-8 hexadecimal bytes, or decode compact and whitespace-separated hex back to text.
Your results will appear here.
Three steps. That’s it.
A useful toolkit for text, data, images and calculations.
- 01
Add your input
Choose a tool, enter values or select a file.
- 02
Make it yours
Adjust the options and run the action.
- 03
Take the result
Copy the result or download its file.
Text to hexadecimal converter online
A string to hex converter first encodes text as UTF-8 bytes, then writes each byte as two hexadecimal digits. Use it to inspect an API fixture, compare encoded payloads or understand accented characters. The reverse mode decodes hexadecimal bytes as UTF-8; it is not a decimal-number converter or an encryption tool.
How to use it
Paste a string and choose encode under Action. Run the tool to produce lowercase bytes separated by spaces. To reverse the conversion, choose decode and paste complete hexadecimal byte pairs, either compact or separated by whitespace. Copy or download the result.
Options and example settings
Worked examples
Inspect the exact UTF-8 byte representation of text. These examples match the converter’s encode and decode modes.
ASCII text
Settings: Action: encode
Input:
Hello
Five UTF-8 bytes, shown as lowercase hex.
Output:
48 65 6c 6c 6f
Albanian accented character
Settings: Action: encode
Input:
ë
One character produces two bytes.
Output:
c3 ab
Decode a currency symbol
Settings: Action: decode
Input:
E2 82 AC
Uppercase hex bytes decode to the euro symbol.
Output:
€
Decode compact hex
Settings: Action: decode
Input:
48656c6c6f
Whitespace is optional between complete hex pairs.
Output:
Hello
Limitations and common mistakes
- Remove 0x prefixes, commas and colons before decoding; this tool accepts byte pairs and whitespace, not those extra separators.
- An odd number of hexadecimal digits is incomplete. For example, 486 cannot be decoded.
- Valid hexadecimal can still be invalid UTF-8: ff is rejected in decode mode.
- Leading/trailing spaces and line breaks in text are encoded as bytes. Do not trim meaningful input accidentally.
- The text encoding is UTF-8; remove 0x prefixes and non-whitespace separators before decoding.
Frequently asked questions
Can I choose UTF-16 or another encoding?
No. This tool uses UTF-8 only. It does not reinterpret bytes as UTF-16, Latin-1 or Windows-1252.
Is hex encoding encryption?
No. Hex is a readable representation of bytes and provides no confidentiality.
Can I convert a decimal number to hex here?
This tool encodes the characters you type. Text 10 becomes 31 30, not the numeric hexadecimal value 0a.
How can I transform a string to hex online?
Paste a string and choose encode under Action. Run the tool to produce lowercase bytes separated by spaces. To reverse the conversion, choose decode and paste complete hexadecimal byte pairs, either compact or separated by whitespace. Copy or download the result.
Technical references
Where is my input processed?
The bundled tool processes input in your browser. It does not upload tool input to a conversion service. Other site plugins, analytics, advertising and browser extensions may have separate behavior.
Useful next tools
Explore other tools
Open a tool below, use the search, or choose a category to browse its full collection.
- JSON Formatter and Validator
Validate JSON syntax, format with two or four spaces, or minify it for copying and downloading. Works with pasted JSON in your browser.
- SQL IN List Builder
Convert a list of lines into a SQL IN (...) fragment. Quote text safely for the fragment, preserve leading zeros or select numeric values.
- CSV to JSON and JSON to CSV Converter
Convert CSV tables to JSON arrays or JSON arrays of objects to CSV. Supports comma, semicolon and tab delimiters, quotes and multiline cells.
- Unix Timestamp Converter
Convert Unix seconds or milliseconds to ISO dates and readable time zones. Convert ISO dates back to Unix timestamps.
- UUID v4 Generator
Generate one or up to 1000 random UUID v4 identifiers in your browser. Copy the list or download the values as a text file.
- URL Encoder and Decoder
Encode or decode URL text. Choose component mode for parameter values or full URL mode to preserve URL separators.
