Free Tools in This Category
URL Encoder Decoder
Percent-encode or decode URLs, query strings, and parameter values complying with RFC 3986 standards.
Base64 Encode
Encode raw text, passwords, API tokens, or binary payloads into safe ASCII Base64 format.
Base64 Decode
Decode Base64 strings back into human-readable plain text or inspect JWT token headers and claims.
Why We Need Encoding: URL Percent-Encoding vs. Base64
Modern developers frequently encounter two distinct encoding schemes across the web stack:
- URL Encoding (Percent-Encoding, RFC 3986): Replaces illegal, reserved, or non-ASCII characters in a Uniform Resource Identifier with a percent sign (
%) followed by the two-digit hexadecimal representation of the character's byte value. For example, a space becomes%20(or+in form data), an ampersand becomes%26, and a forward slash becomes%2F. - Base64 Encoding (RFC 4648): Designed for arbitrary binary-to-text transport (such as sending image attachments over email MIME protocols or embedding small logos into CSS stylesheets as Data URIs). It converts groups of 24 bits (3 bytes) into four 6-bit numbers, represented by a 64-character alphabet (
A-Z, a-z, 0-9, +, /, with=padding).
| Character | URL Encoded (% Hex) | Why It Must Be Encoded in URLs |
|---|---|---|
| Space ( ) | %20 or + | Spaces are illegal in raw URLs and cause web clients to truncate the URI string. |
| Ampersand (&) | %26 | Used to delimit query parameters (?a=1&b=2). Unencoded, it splits parameter values prematurely. |
| Equals (=) | %3D | Used to assign key/value pairs. Values containing "=" must be encoded to preserve boundaries. |
| Question Mark (?) | %3F | Marks the start of the query string. Extra unencoded "?" characters confuse server routing. |
| Hash (#) | %23 | Designates client-side fragment identifiers (anchors). Browsers do not even transmit content after "#" to servers! |
Tool-by-Tool Guide to Encoding Utilities
1. URL Encoder / Decoder: Fixing Query Parameters & Redirects
The URL Encoder Decoder provides two-way transformation:
- Full URI vs. Component Encoding: Choose whether to preserve protocol prefixes (
https://) while encoding query values (like JavaScript'sencodeURIComponent()) or encode the entire string. - OAuth Callback URL Handlers: Safely encode deep redirect URLs passed inside state parameters (e.g.,
redirect_uri=https%3A%2F%2Fapp.example.com%2Fcallback). - Tracking & UTM Parameter Cleanup: Inspect marketing links with messy encoded query strings to see clean destination targets.
2. Base64 Encode & Base64 Decode: Data URIs & API Authorization
Base64 is everywhere in modern web applications:
- The Base64 Encode tool generates strings for HTTP Basic Authentication headers (e.g.,
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=). - The Base64 Decode tool lets you quickly inspect JWT (JSON Web Token) payload claims (the middle segment of a JWT is simply a Base64URL-encoded JSON string) without sending sensitive tokens to untrusted third-party APIs.
- HTML / CSS Data URIs: Embed small SVG icons or PNG images directly into CSS stylesheets (
data:image/png;base64,iVBORw0KGgo...) to reduce HTTP round-trips.
Base64 Mathematical Overhead: The 33% Storage Tax
Because Base64 converts every 3 bytes (24 bits) into 4 characters (32 bits), it increases the data size by exactly 33.3% ($4/3 = 1.333$):
$\text{Encoded Size} \approx \lceil \frac{\text{Original Bytes}}{3} \rceil \times 4\text{ Bytes}$
For small images under 5KB, the reduction in HTTP request overhead outweighs the 33% size penalty. For large files, binary transmission remains significantly faster.