Text Encoding Converter

Convert text between Base64, ASCII, Hex, Binary, and URL formats.

Waiting for input...

About Encoding

Base64

Encodes binary data into ASCII characters. Commonly used for email attachments and embedding small images in HTML/CSS.

ASCII

American Standard Code for Information Interchange. Represents text in computers using numbers (0-127).

URL Encoding

Converts special characters into %xx hex format. Essential for passing data safely via URLs.

The Developer's Rosetta Stone: Decoding Text Formats

Data rarely stays in plain text. Whether you are debugging a raw database dump, analyzing a network packet, or simply trying to send a URL with special characters, you need to translate between the various languages computers speak. Our tool bridges the gap between human readable text and machine code instantly.

Understanding the Encodings

Base64

The standard for sending binary data (like images) over text-only channels (like Email or JSON). It uses A-Z, a-z, 0-9, +, and / to represent data.

URL Encoding

Essential for the web. Converts unsafe characters (spaces, ?, &) into `%` Hex codes so browsers can interpret URLs correctly.

Binary

The raw language of your processor. ASCII conversion maps each letter to an 8-bit sequence of 0s and 1s.

Hexadecimal

Base-16 notation provided a human-readable way to view binary data. Used extensively in memory dumps and color codes (#FFFFFF).

ASCII

The 7-bit character set that started it all. Maps 128 characters to numbers. 65 is 'A', 97 is 'a', 32 is 'Space'.

Real World Use Cases

1
Debugging API Payloads

Received a response containing `SGVsbG8gV29ybGQ=`? That is Base64. Paste it above to instantly see it means "Hello World".

2
Obfuscating Email Links

Developers often Base64 encode email addresses in HTML `mailto:` links to prevent simple spam bots from scraping them.

3
Fixing Broken URLs

If a URL isn't working, check for special characters. `http://site.com/search?q=C++ Guide` will break. Encoding it to `q=C%2B%2B%20Guide` fixes it.

Frequently Asked Questions

What is the difference between URI Component and URI encoding?

This is a common source of bugs! encodeURI() escapes characters that have special meaning in a full URL (like spaces), but leaves characters like /:&? alone so the URL remains valid. encodeURIComponent() escapes everything that isn't alphanumeric (including /:&?), making it safe to put inside a single query parameter value.

Is Base64 encryption?

No! Base64 is an encoding scheme, not encryption. It obfuscates data to make it safe for transport (like sending images inside JSON), but it offers zero security. Anyone can decode Base64 back to the original text instantly. Never use it to hide passwords.

Why do we use Hexadecimal (Base 16)?

Computers read binary (0s and 1s), but that's very long for humans to read. Hexadecimal is a shorthand: one Hex digit represents exactly 4 binary bits (a nibble). Two Hex digits represent one full Byte (8 bits). It's the standard for displaying memory addresses and color codes.

What is ASCII?

ASCII (American Standard Code for Information Interchange) is a legacy character set that maps the first 128 characters (English letters, numbers, and basic symbols) to numbers 0-127. While modern apps use Unicode (UTF-8) to support global languages, ASCII remains the foundation of computing text.

How does URL Encoding work?

URLs can only contain a specific set of safe characters (ASCII). If a URL contains unsafes characters like spaces, emojis, or foreign letters, they must be converted to a % symbol followed by their two-digit Hex code. For example, a space becomes %20.

What is the use of Binary encoding for text?

Converting text to Binary shows you exactly how the computer stores it on the disk. Each letter is converted to its numeric value (ASCII/Unicode) and then to an 8-bit binary string. It's mostly educational for understanding low-level computing.

Why does Base64 increase file size?

Base64 creates a 33% overhead. It uses 4 ASCII characters to represent every 3 Bytes of original binary data. This is why sending large images as Base64 strings in API responses is generally discouraged compared to sending them as binary blobs or separate files.

Can this tool decode JWTs?

A JSON Web Token (JWT) is just three Base64-encoded JSON parts strung together. Yes, you can use the Base64 decoder part of this tool to read the payload (middle section) of a JWT, but for deeper analysis, use a dedicated JWT debugger.

What happens if I try to Hex decode invalid characters?

Hexadecimal can only consist of 0-9 and A-F. If your input string contains 'G', 'Z', or other letters, the decoding will fail or produce garbage data because those are not valid base-16 digits.

Is UTF-8 the same as ASCII?

Not exactly. UTF-8 is backwards compatible with ASCII. The first 128 characters of UTF-8 are identical to ASCII. However, UTF-8 can use up to 4 bytes per character to represent emojis and characters from every language on Earth, whereas ASCII is strictly limited to English characters.