Base64 is a binary-to-text encoding scheme that represents any binary data using only 64 printable ASCII characters (A–Z, a–z, 0–9, +, /, with = as padding). It exists because many systems — email, JSON, URLs, older text-based protocols — were designed to safely carry plain text but can corrupt or reject raw binary bytes. Base64 wraps that binary data in a text-safe format that passes through those systems unchanged.
This Base64 encoder and decoder converts text or data to Base64 format and back, entirely in your browser. Paste in plain text to get its Base64 representation, or paste in a Base64 string to decode it back to the original text.
Common uses include embedding small images directly into CSS or HTML using data URIs (avoiding an extra network request), encoding binary data for transmission in JSON API payloads (JSON has no native binary type), and preparing file attachments for MIME-based email transmission. One tradeoff to know upfront: Base64-encoded output is always about 33% larger than the original input, because every 3 bytes of binary data become 4 characters of text.