Alphabet
Line breaks
Runs entirely in your browser, nothing is uploaded.
File to Base64
Any file up to 25 MB. Read locally, never uploaded.
How it works
Base64 encoder and decoder that handles UTF-8 and files
Encode and decode Base64 with real UTF-8 handling and an optional URL-safe alphabet. Files up to 25 MB become raw Base64 or a data: URI.
What this does
- Text is UTF-8 encoded before btoa sees it, so emoji and accents survive the round trip
- The URL-safe alphabet swaps + and / for - and _ and drops the = padding
- Optional wrapping at 76 columns for MIME bodies and email headers
- The decoder takes either alphabet with or without padding, and ignores line breaks
- A file up to 25 MB gives you the raw Base64 next to a ready-to-paste data: URI
- A payload that is not valid UTF-8 is offered as a .bin download instead of mangled text
FAQ
Keep going