Data Converter
Convert between hex, ASCII, binary, and decimal formats with real-time conversion and copy functionality.
Conversion Settings
Input
Output
Conversion History
How to Use the Data Converter
This tool lets you convert any text or number between hexadecimal, ASCII/text, binary, decimal, and Base64 formats in real time - no installation, no sign-up, and no data ever leaves your browser.
Choose Your Input Format
In the Input panel, click the format button that matches your source data -
Text, Hex, Binary, or Decimal. If you are pasting a hex
string like 48 65 6C 6C 6F, select Hex. If you are typing plain words, select Text.
Configure the Settings
Use the Conversion Settings panel above to fine-tune the output. Select your text encoding (UTF-8 works for most cases), pick uppercase or lowercase for hex output, choose binary bit grouping (4-bit or 8-bit groups), and set the decimal base if needed.
Choose Your Output Format
In the Output panel, click the target format button. The conversion runs instantly as you type or paste - no need to press a Convert button. You can switch output formats at any time without re-entering your data.
Copy or Download the Result
Click Copy to send the result to your clipboard, or Download to
save it as a .txt file. Your last 10 conversions are saved in the Conversion
History panel so you can reload any previous result in one click.
Swap Input and Output
Click the ⇄ swap button between the two panels to instantly reverse the conversion - the output becomes the new input and vice versa, with formats swapped. This is handy for round-trip verification: convert text to hex and then back to text to confirm accuracy.
Paste Large Data Sets
The tool handles multi-line and multi-kilobyte inputs. Click Paste to insert clipboard content directly, or simply paste using Ctrl+V / Cmd+V. The converter processes large payloads smoothly without freezing your browser.
Understanding the Data Formats
Not sure what each format means? Here is a plain-English explanation of every format supported by this tool, along with when you would typically encounter it.
Text (ASCII / Unicode)
- Plain readable text is the most human-friendly format.
- Every character you type - a letter, digit, or punctuation mark - has a numeric code point assigned by the Unicode standard.
- ASCII covers the first 128 code points (English letters, digits, basic punctuation).
- UTF-8, UTF-16, and Latin-1 are different ways to encode those code points as bytes in memory or on disk.
- When you work with text in any programming language, it is ultimately stored as a sequence of these numeric values.
HelloHexadecimal (Base-16)
- Hexadecimal uses 16 symbols: the digits 0–9 and the letters A–F (or a–f).
- Because 16 = 2⁴, one hex digit maps to exactly four binary bits, and two hex digits (a "byte pair") map to one byte.
- This makes hex a compact and human-readable way to inspect raw binary data.
- You will find hex in color codes (
#FF5733), memory addresses, SHA hashes, file signatures (magic bytes), and network protocol analysis. - Most debuggers and hex editors display data in hexadecimal by default.
48 65 6C 6C 6F →
HelloBinary (Base-2)
- Binary is the native language of computer hardware.
- Every piece of data - text, images, audio, executable programs - is ultimately stored as a sequence of bits, each either 0 or 1.
- Eight bits form one byte, which can represent 256 different values (0–255).
- While binary is rarely used directly by humans, understanding it is essential for low-level programming, digital electronics, network protocols, and cybersecurity.
- This converter lets you visualise the exact bit pattern of any text string.
01001000 01100101 →
HeDecimal (Base-10)
- Decimal is the everyday number system with digits 0–9.
- In the context of data conversion, decimal mode expresses each character as its Unicode code point in base 10.
- For example, the letter "A" has code point 65, "B" is 66, and so on.
- Octal (base-8, digits 0–7) and hexadecimal (base-16) are alternate bases that are also selectable in the Decimal Base setting.
- Decimal code points are widely used in HTML character references (
Afor A) and in programming when you need a human-readable numeric representation of characters.
72 101 108 108 111 →
HelloBase64
- Base64 encodes binary data using 64 printable ASCII characters: uppercase A–Z, lowercase
a–z, digits 0–9, plus
+and/(with=for padding). - Because it only uses characters that are safe in any text-based protocol, Base64 is the standard way to embed binary data inside JSON, XML, HTML, CSS data URIs, and email attachments.
- It increases data size by about 33% compared to raw bytes, which is the trade-off for universal text compatibility.
- Common uses include embedding images in web pages, storing public keys in PEM files, and passing binary data through APIs.
SGVsbG8= → Hello
Common Use Cases
Developers, security researchers, students, and system administrators use data converters every day. Here are the most frequent real-world scenarios where this tool saves time.
Debugging Network Packets
When analysing raw TCP/UDP payloads in Wireshark or tcpdump, data is often displayed as a hex dump. Paste the hex bytes here to instantly read the underlying ASCII text and understand what your application is actually sending or receiving.
Inspecting File Magic Bytes
Every file format has a unique signature at its start, known as "magic bytes". For example, PDF
files start with 25 50 44 46 and PNG files start with 89 50 4E 47.
Convert these hex values to ASCII to verify a file's true type, regardless of its extension.
Encoding & Obfuscation
Security researchers often encode payloads in hex or Base64 to bypass naive string-matching filters during penetration testing. This tool quickly converts between encoded and decoded forms, which is essential when analysing malware samples, shellcode, or obfuscated scripts.
Learning Number Systems
Students studying computer science or digital electronics can use this tool to visualise how the same value looks across all number bases simultaneously. Type a character in the Text field, then switch the output between Hex, Binary, and Decimal to instantly see how the representations relate to each other.
Preparing Data for APIs
Many REST APIs and messaging systems require binary payloads to be Base64-encoded before inclusion in a JSON body or URL parameter. Convert your raw text or binary data to Base64 here, then paste it directly into your API request without needing a programming environment.
Embedded Systems & Firmware
Firmware engineers frequently work with raw hex values for register configurations, CAN bus messages, and serial protocol frames. Quickly translate hex configuration bytes into readable text labels, or convert decimal sensor values into their hex equivalents for use in embedded C code.