Encode and decode Base64
Convert text to and from Base64, Base64URL or URL encoding, or turn a small file into a data URI. Everything happens in your browser.
Deskshed, our desktop app for Windows. It has real save dialogs, works offline, and adds whole-folder jobs for photos and PDFs. Pay once: $5 for the first 1,000 buyers, then $9.
See DeskshedBase64 encoder at a glance
- Cost
- Free, with no watermark
- Account
- None needed
- Your data
- Stays in your browser. How to check
- You get
- Encoded or decoded text
- Limits
- Your browser's memory for files
How to use it
Paste your text
Or drop a file to get a data URI.
Pick the encoding
Base64 for general use, Base64URL for tokens and links, URL encoding for query strings.
Encode or decode
Then copy the output.
Base64 encoder: common questions
Is Base64 encryption?
No. Anyone can decode it, so it hides nothing. It only turns data into text that's safe to send through systems built for text.
Why is the output longer than the input?
Base64 uses four characters for every three bytes, so the result is about a third longer.
What's the difference between Base64 and Base64URL?
Base64URL swaps the plus and slash for a hyphen and underscore, and usually drops the padding, so it's safe in web addresses. It's the form used in JSON Web Tokens.