Encoding Utility

Base64 & URL Encoder / Decoder

Bi-directional text conversion for Base64 and URL encoding. Handles multi-byte UTF-8 characters cleanly in your browser without transmitting data.

How Base64 and URL Encoding Work

Base64: Designed to carry binary data across communication channels that only reliably transmit ASCII characters (such as MIME emails or HTTP authorization headers). It takes 3 bytes of binary data (24 bits) and divides them into 4 chunks of 6 bits each, mapping them to a 64-character alphabet (A-Z, a-z, 0-9, +, /).

URL Percent-Encoding: URLs only permit a limited set of ASCII characters. Any reserved or non-ASCII characters (such as spaces, ampersands, or UTF-8 characters) are replaced with a percent sign (%) followed by two hexadecimal digits representing the byte value (e.g. space becomes %20).

Related Guides on Mangobaz