Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back to text. Supports UTF-8 characters.

Ad Space

Ad Space

About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters. It is commonly used to embed images in CSS/HTML, encode email attachments (MIME), transmit data in URLs, and store binary data in JSON or XML.

How Base64 Works

Base64 encoding takes groups of 3 bytes (24 bits) and splits them into 4 groups of 6 bits each. Each 6-bit value maps to a character in the Base64 alphabet (A-Z, a-z, 0-9, +, /). Padding with = is added when the input length is not divisible by 3.

URL-Safe Base64

URL-safe Base64 replaces + with - and / with _, making it safe for use in URLs and filenames without percent-encoding.