Choose your tool

DEVELOPER TOOL

String to Hex Converter

Convert strings to space-separated UTF-8 hexadecimal bytes, or decode compact and whitespace-separated hex back to text.

◇ Browser only
0 lines · 0 characters
Ready when you are
Your results will appear here.
Copy or download your result below.
LESS BUSYWORK, MORE DONE

Three steps. That’s it.

A useful toolkit for text, data, images and calculations.

  1. 01

    Add your input

    Choose a tool, enter values or select a file.

  2. 02

    Make it yours

    Adjust the options and run the action.

  3. 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

OptionChoices / valueExample default
Actionencode; decodeencode

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.