Free online Base64 encoder and decoder with file support and URL-safe encoding
Privacy-first
All encoding happens locally
Auto-detect
Detects encode/decode needs
URL-safe mode
Web-compatible encoding
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII string format using 64 printable characters. It's commonly used for transmitting data in environments that only support text, such as email attachments or embedding images in HTML/CSS.
Use URL-safe encoding when the Base64 string will be used in URLs or filenames. It replaces '+' with '-', '/' with '_', and removes '=' padding to avoid conflicts with URL reserved characters.
You can encode any file type including images (PNG, JPG, GIF), documents (PDF, DOC), videos, audio files, and more. The tool converts the binary data to Base64 text format that can be safely transmitted or stored as text.
There's no hard limit since all processing happens in your browser. However, very large files (>50MB) may cause performance issues. Note that Base64 encoding increases file size by approximately 33%.