हिं हिन्दी

    Text to hex converter

    Convert text to hexadecimal bytes and hex back to text.

    Your text stays on this device

    About this tool

    This tool converts text to hexadecimal, two hex digits per UTF-8 byte; for example, "Hi" becomes 48 69. You can choose spaced or compact output and lower or upper case (a–f or A–F), and switch to Hex → Text to decode hex back into readable text.

    At a glance

    What it does
    Convert text to hexadecimal bytes and hex back to text.
    Price
    Free, no sign-up
    Works in
    Your browser, on phone or computer. Works offline after the first visit.
    Privacy
    What you type never leaves your device.

    How to convert text to hex

    1. Make sure Text → Hex is selected.
    2. Type or paste your text.
    3. Untick "Space between bytes" for compact hex, then copy it.

    Private

    Your text stays in your browser and is never sent to a server.

    Instant

    Results update as you type, with nothing to install.

    Free

    No sign-up, no limits and no ads inside your writing space.

    Frequently asked questions

    How do I convert a string to hex?

    Type the string with Text → Hex selected and copy the result. Each byte becomes two hex digits: "OK" is O = 79 = 4f and K = 75 = 4b, so "4f 4b".

    Which encoding does the text to hex converter use?

    UTF-8, the encoding used by almost every website and app. "é" becomes c3 a9 and the Hindi letter "न" becomes e0 a4 a8.

    How do I add 0x before each hex byte?

    Copy the spaced hex into Find and Replace, replace each space with " 0x" and add 0x at the start. The decoder on this page already accepts 0x, \x, colons and dashes.

    Is hex a form of encryption?

    No. Hex is just another way of writing the same bytes, and anyone can turn it back into text, so never use it to hide passwords.

    Is my text sent anywhere?

    No. Everything runs in your browser and your text never leaves your device. Nothing is stored on any server.