Input text
Base64 output
Base64 input
Decoded output
Drop any file here or click to browse
Encode text or files to Base64, or decode a Base64 string back to text or a downloadable file. Runs entirely in your browser — nothing is uploaded.
Drop any file here or click to browse
Base64 is used to encode binary data — images, files, or binary strings — into a text-safe format that can be transmitted in contexts that only support ASCII text, such as email (MIME), JSON payloads, CSS data URIs, and API authentication tokens.
No — Base64 encoding increases file size by approximately 33%, because every 3 bytes of binary data are represented as 4 ASCII characters. It is an encoding format, not a compression format.
Yes. All encoding and decoding happens locally in your browser using built-in JavaScript APIs. No data is sent to any server.