Drop any file - PDF, DOCX, ZIP, MP3, MP4, anything - and get its Base64-encoded representation. Includes the proper MIME type prefix for use as a data URI. Encoding happens locally in your browser using FileReader - the file is never uploaded.
When to use this
Use when: embedding small file attachments in JSON / XML / GraphQL APIs, generating self-contained HTML emails with embedded PDFs, prepping fixture data for tests, transmitting binary data through text-only channels (chat, SMS, old email systems).
Frequently Asked Questions
What's the max file size?
5 MB per file. The Base64 output is about 33% larger than the source, so a 3 MB PDF becomes about 4 MB of text.
Why is my Base64 output huge?
Base64 encoding always increases size by ~33% (3 bytes -> 4 chars). A 1 MB file becomes a ~1.34 MB Base64 string. If you need smaller payloads, consider gzipping the file first, then Base64-encoding the gzipped output.
Powered by Base64 Encoder / Decoder.