Skip to main content

Base64 Encoder / Decoder

Encode and decode Base64 for text and files. URL-safe mode, auto-detect, and file data URI generation. 100% in-browser.

Mode:
Detected: Base64
Plain Text 0 chars
Base64 0 chars
Drop a file here, or click to browse
Any file type — max 5 MB
filename.png
0 KB • image/png
Data URI

Frequently Asked Questions

Is my data sent to any server when I encode or decode Base64?

No. All Base64 encoding and decoding is performed locally in your browser using the atob() and btoa() browser APIs. Text input, file content, and output remain entirely on your device.

What is the difference between standard Base64 and URL-safe Base64?

Standard Base64 uses the characters + and / which have special meaning in URLs, causing encoding errors in query strings or path segments. URL-safe Base64 replaces + with - and / with _, making the output safe for direct use in URLs, JWT tokens, and file names without percent-encoding.

Can I encode images or binary files to Base64 data URIs?

Yes. Switch to the File tab, drag and drop any image or binary file, and the tool converts it to a Base64-encoded data URI (e.g. data:image/png;base64,...). These URIs can be embedded directly in HTML, CSS, or JSON payloads without a separate file upload.