Base64 Encoder
Encode text or any file to Base64, or generate a full data URI. UTF-8 safe, instant and completely client-side — nothing is uploaded.
Base64 Encoder
Encode text or a file as Base64 — or as a ready-to-use data URI.
The standard alphabet, with = padding — what most APIs and config files expect.
How to use
The whole flow runs in your browser — nothing is uploaded.
- Pick an inputType text, or switch to File and choose any file from your device.
- Choose the outputPlain Base64 or a complete data: URI with the MIME type included.
- EncodeThe result is produced locally the moment your input changes.
- Copy or downloadOne click copies it; the download button saves a .txt file.
- Every step runs locally in your browser.
Key Features
Encode text or files to Base64 without leaving the browser. Everything runs client-side on your own device.
- UTF-8 safeAccented characters, emoji and CJK text encode correctly.
- Text or file inputAny file type can be encoded, not just images.
- Data URI outputInclude the MIME type when you need a ready-to-paste URI.
- Local encodingFiles are read with the FileReader API — never uploaded.
Frequently asked questions
No. The exact bytes are encoded, so decoding the output always gives back the original file.
Base64 represents every 3 bytes as 4 characters, so the encoded text is about 33% larger. That is expected.
Very large files are limited by your device's memory. Encoding a few megabytes is fast.