Hex converter

Convert text to hexadecimal and back with this free hex converter. Paste your string, get the base16 output instantly. No signup is required to use it.
How the hex converter processes your text
Every character maps to a single byte. That byte consists of two hexadecimal digits, representing values from 00 to FF. When you type the letter A, the system reads its ASCII decimal value of 65 and outputs 41. Reverse the process to decode. You feed it pairs of hex digits, and it reconstructs the original byte stream.
The underlying math is just base16 arithmetic. A single hex digit holds four bits of information. Two digits give you the full eight bits needed for a standard ASCII character. This makes base16 incredibly compact for representing raw binary data in plain text formats. It takes up exactly twice the space of the original binary data, unlike base64 which adds a third.
- The letter A becomes 41.
- The number 0 becomes 30.
- A space character becomes 20.
Practical use cases for an online hex converter
You usually need this when debugging binary protocols or inspecting raw memory dumps. You see a byte sequence in a packet capture and need to know what ASCII text it represents. Translating those raw bytes by hand is a waste of time. The tool does the arithmetic instantly.
Another common scenario involves escaping special characters in URLs or database payloads. Sometimes a legacy system rejects a raw string but accepts its hex-encoded equivalent. You can quickly encode the problematic characters to bypass the filter and get your request through.
- Inspecting raw network packet payloads.
- Escaping special characters in legacy APIs.
- Reading memory dumps from a debugger.
Limits of this free hex converter
The tool handles standard UTF-8 text perfectly. It does not natively parse UTF-16 or UTF-32 unless you treat them as raw byte streams. Multi-byte characters like emojis will expand into multiple hex pairs, which is the correct behavior for UTF-8 encoding. A single emoji might take up four bytes, resulting in eight hex digits.
It also doesn't validate the semantic meaning of the hex you paste. If you feed it a hex string that decodes to invalid UTF-8 byte sequences, you get garbage characters back. The converter just maps bytes to characters. It cannot guess what broken text was supposed to say, nor can it fix encoding mismatches between Windows and Linux systems.
How to use the hex converter
- Paste your plain text or hexadecimal string into the input field.
- Select the direction you want to convert, either text to hex or hex to text.
- Click the convert button to process the byte mapping.
- Copy the resulting base16 string from the output field.
Common character to hexadecimal mappings
Here is a quick reference for how standard ASCII characters translate into base16 values.
| Character | Decimal Value | Hexadecimal Value |
|---|---|---|
| A | 65 | 41 |
| 0 | 48 | 30 |
| Space | 32 | 20 |
| ! | 33 | 21 |
| ~ | 126 | 7E |
Frequently asked questions
- Is this hex converter really free to use?
- Yes. Convert as many strings as you need. No account creation or fees apply.
- How do I convert text to hex manually?
- Find the decimal ASCII value of each character, then convert that decimal number to base16. For example, the letter B is 66 in decimal, which is 42 in hex. You then concatenate the pairs together to form the final string.
- Why does my hex to text conversion show weird symbols?
- The hex string likely contains byte sequences that do not form valid UTF-8 characters. The tool replaces invalid byte combinations with the standard replacement character.
- Can I convert large files with this online hex converter?
- The tool processes input in your browser memory. Pasting massive files will freeze your tab. Stick to strings under a few megabytes for the best experience. If you need to process gigabytes of binary data, use a local command line utility like xxd instead.
- Does it support uppercase and lowercase hex letters?
- Yes. The parser accepts both A through F and a through f when decoding hex back into text.
Share
Similar tools
Convert text to binary and the other way for any string input.
Convert text to ascii and the other way for any string input.
Convert text to decimal and the other way for any string input.
Convert text to octal and the other way for any string input.
Popular tools
Check if the URL is cached or not by Google.
Check for 301 & 302 redirects of a specific URL. It will check for up to 10 redirects.
Get approximate IP details.
Take an IP and try to look for the domain/host associated with it.