Base64 Encoder & Decoder
Encode or decode Base64 for text and files. Auto-detects whether your input needs encoding or decoding. 100% in-browser.
0 chars
Input Size
0 chars
Output Size
📤 Encode File → Base64 String
Select any file to encode it as Base64
📥 Decode Base64 → Download File
How to Use Base64 Encoder / Decoder
Use the Text tab for encoding/decoding strings. Use the File tab to encode any file to Base64 or decode a Base64 string back to a downloadable file.
In text mode, the tool auto-detects whether your input looks like Base64 or plain text and highlights which operation makes sense.
Use "Use Output as Next Input" to chain operations — encode, then decode to verify roundtrip accuracy.
Frequently Asked Questions
What is Base64?
Base64 is an encoding scheme that converts binary data into ASCII text — useful for embedding images in HTML/CSS, sending data through APIs, or storing binary data as text.
Is Base64 the same as encryption?
No. Base64 is encoding, not encryption. Anyone can decode it instantly — it offers zero security. Don't use it to hide sensitive data.
Why does Base64 output look longer than the input?
Base64 increases size by roughly 33% because it maps every 3 bytes of input into 4 ASCII characters.
Is my data sent to a server?
No. All encoding and decoding happens entirely in your browser. Nothing is transmitted anywhere.
More Developer Tools
Related tools you might need: