Base64 Encoder & Decoder
Encode and decode Base64 strings instantly.
Base64 is a binary-to-text encoding scheme that represents arbitrary binary data using only 64 printable ASCII characters (A-Z, a-z, 0-9, +, /, and = for padding). It is widely used in email attachments, data URIs, JSON payloads containing binary data, HTTP Basic Authentication credentials, and CSS image inlining.
Our free Base64 Encoder & Decoder supports both directions: encode plain text to Base64, and decode Base64 back to text. The encoder uses UTF-8 to represent Unicode characters, so emojis, accented letters, CJK ideographs, and non-Latin scripts are handled correctly.
Simply type or paste your text into the corresponding box. The Encode button converts plain text → Base64. The Decode button converts Base64 → plain text. If invalid Base64 is entered during decoding, a clear error message is shown explaining the problem rather than producing garbled output.
Privacy note: All encoding and decoding is done in your browser. The content you encode or decode is never transmitted anywhere. This means you can safely process API keys, auth tokens, and other sensitive strings without exposure. For encoding files (images, PDFs) to Base64 data URIs, a future image tool will support this use case.