Base64 Encoder & Decoder Online
Encode and decode text and files to/from Base64 instantly in the browser. Supports URL-safe Base64. Free, secure, no server upload.
Result...
Drag a file here, or click to select it
Images, PDFs, text files — any file type (max 5MB)
Come usare l'Encoder Base64
Enter your text and click Encode → Base64 to get the encoded string. To reverse, paste a Base64 string and click Decode.
Quando usare Base64?
- Includere immagini inline in HTML/CSS (
data:image/png;base64,...) - Trasmettere dati binari via API JSON o XML
- Encodere credenziali in HTTP Basic Auth
- Embedding fonts or files in web pages
- Transferring files through text-only systems
URL-safe Base64
Standard Base64 uses + and / which have special meaning in URLs. The URL-safe variant replaces them with - and _, making it safe for query strings and paths.
Tab File
In the File tab you can drag any file (image, PDF, document) to get its Base64 encoding. Useful for embedding resources in web pages or APIs. The file is never sent to external servers.
Privacy
Your code is never sent to external servers. All processing happens in the browser via pure JavaScript.