$base64
Encoders
Encode text to Base64, decode Base64 to text, or convert files to data URLs. Everything runs in your browser.
Mode:
Output will appear here
File → Base64 Data URL
// how-to
How to encode and decode Base64
Convert text and files to and from Base64 entirely in your browser. Ideal for data URIs, email attachments, and JWT payload inspection.
Choose encode or decode
Switch between Encode and Decode. The output panel updates instantly when the input or mode changes.
Paste your text
For text, type or paste into the input. For files, pick a file to generate a full data: URL.
Inspect the result
The output appears on the right. Invalid Base64 is reported with a clear error message.
Copy or save
Click Copy to put the result on your clipboard, or Download to save it as a file.
// faq
- ? Is Base64 a form of encryption?
- No. Base64 is an encoding, not encryption. Anyone can decode it. Never use Base64 to hide sensitive data.
- ? Why is the Base64 output longer than the input?
- Base64 uses 4 output characters per 3 input bytes, plus padding. Expect output roughly 33% larger than the original.
- ? Can I encode binary files?
- Yes. Drop any file into the file input and the tool returns a complete data URL you can paste into HTML or CSS.
- ? What is URL-safe Base64?
- A variant that replaces + and / with - and _ so the string can be used in URLs and filenames without escaping.