Loading tool...
Search for a command to run...
Encode and decode Base64 with file support and URL-safe mode
Encode/decode as you type
RFC 4648 compliant (-_ instead of +/)
Add line breaks every 76 chars
About Base64:
Files never leave your device
Not available — would need cloud processing
Very large file encoding exceeds browser memory limits and requires server-side streaming.
Base64 is a binary-to-text encoding scheme that converts any data into a safe ASCII string using 64 characters: A-Z, a-z, 0-9, + and /. The "64" refers to the 64-character alphabet used in the encoding. Base64 was designed to safely transmit binary data through systems that only handle text, like email (SMTP) or JSON APIs.
Base64 takes 3 bytes (24 bits) of input and converts them to 4 ASCII characters (6 bits each). This is why Base64 increases size by ~33%. The = character pads the output when input isn't divisible by 3.
Standard Base64 uses + and / which need escaping in URLs. URL-safe Base64 (RFC 4648) replaces them with - and _, making it safe for URLs, filenames, and JWT tokens without additional encoding.
Create data URIs to embed images directly in HTML/CSS without separate HTTP requests. Format: data:image/png;base64,... Reduces page requests for small icons and sprites.
Send binary files (images, PDFs, documents) through JSON/XML APIs that only support text. The receiving system decodes Base64 back to the original binary.
MIME encoding uses Base64 to attach binary files to emails. The SMTP protocol only handles 7-bit ASCII, so attachments must be Base64 encoded.
JSON Web Tokens use Base64URL encoding for the header and payload sections. This allows tokens to be safely transmitted in HTTP headers and URLs.
Embed fonts, SVGs, and small files directly in CSS using data URIs. Eliminates additional HTTP requests but increases CSS file size.
Store binary data in text-based configs like YAML, JSON, or environment variables. Common for certificates, keys, and small binary assets.
Unlike most online Base64 tools, we never upload your data. All encoding and decoding happens entirely in your browser using JavaScript. Your text, files, and sensitive data never leave your device.
Convert text to Base64 or decode Base64 back to text instantly
Drag and drop files up to 5MB to encode them to Base64
RFC 4648 compliant encoding that replaces +/ with -_ for URLs
Real-time encoding as you type for instant feedback
Full Unicode support including emojis and special characters
One-click copy or download your encoded/decoded content
Swap panels to quickly reverse encode/decode operations
All processing in your browser - data never leaves your device
Enter text in the left panel to encode to Base64
Or paste Base64 in the right panel to decode to text
Enable Live Mode for real-time encoding as you type
Toggle URL-safe for URL-compatible Base64 output
Upload files by dragging them into the left panel
Use Swap to quickly exchange input and output
Encode and decode Base64 instantly in your browser. Convert text, files, and images to Base64 for data URIs, API payloads, and email attachments. URL-safe mode for JWTs and web apps. 100% client-side - your data never leaves your device.
| Feature | JumpTools | Base64Encode.org | Base64.guru |
|---|---|---|---|
| Price | Free | Free (ads) | Free (ads) |
| Privacy | 100% client-side | Server-side | Server-side |
| URL-safe mode | Yes (RFC 4648) | Yes | Yes |
| File encoding | Up to 5MB | Limited | Up to 10MB |
| Live mode | Real-time as you type | Button click | Button click |
| Line breaks option | Yes (76 chars) | No | Yes |
| Data URIs | Auto-generate | Manual | Yes |
| Download output | Yes | Yes | Yes |