Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text. Supports URL-safe encoding. Free, instant, and private — all processing happens in your browser.

Embed this tool

Advertisement

Ad

How Base64 Works

Base64 converts every 3 bytes (24 bits) of binary data into 4 ASCII characters. Each character represents 6 bits, using a 64-character alphabet (A-Z, a-z, 0-9, +, /). If the input is not a multiple of 3 bytes, padding = characters are added.

Example

Text: Hello
Base64: SGVsbG8=
URL-safe: SGVsbG8

Frequently Asked Questions

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It is commonly used to encode data for transmission over text-based protocols like email and HTTP, or to embed binary data in JSON and XML.

Related Tools