Base64 Encoder & Decoder
Encode any text to Base64 or decode Base64 strings back to plain text instantly. Base64 is a binary-to-text encoding scheme used everywhere in web development — in data URLs, email attachments, HTTP Basic Auth headers, and JWT tokens. Type or paste text to encode, or paste a Base64 string to decode.
About Base64 Encoder / Decoder
Base64 encoding converts binary data into a string of 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). Every 3 bytes of input become 4 Base64 characters, producing output that is about 33% larger than the original. Padding characters (=) are added to make the output length a multiple of 4.
Base64 is ubiquitous in modern computing: data URIs for embedding images in HTML/CSS (data:image/png;base64,...), HTTP Basic Authentication headers, encoding attachments in MIME emails, storing binary data in JSON, and the payload and header sections of JWT tokens are Base64URL encoded.
Our tool encodes UTF-8 text to Base64 and decodes Base64 back to UTF-8. It supports the standard Base64 alphabet with = padding. For URL-safe Base64 (which replaces + with - and / with _), you would need to substitute those characters after encoding.