Base64 Encoder/Decoder

Encode and decode Base64 for text, files, and images — instant and private

🔒 Files never leave your browser
Mode
Text Input 0 chars
Base64 Output 0 chars
Recent Conversions

No conversions yet.

How to Use Base64 Encoder/Decoder

Choose your mode

Select Text, File, or Image Preview mode. Pick encode or decode direction.

Provide input

Type text, upload a file, or paste Base64 data. Conversion happens instantly.

Copy or download

Copy the result to clipboard or download as a file.

Why Choose AllTools Base64 Encoder/Decoder?

  • 100% free, no account needed
  • Data never leaves your browser
  • Text ↔ Base64 with live conversion
  • File ↔ Base64 for any file type
  • Image Base64 preview with dimensions
  • URL-safe Base64 mode
  • Data URI prefix toggle
  • Line break formatting (76 chars)
  • UTF-8 encoding support
  • Swap, paste, copy, and download actions

Frequently Asked Questions

What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters. It is commonly used to embed images in HTML/CSS and transmit binary data in text-based protocols.
Is this Base64 tool free?
Yes, completely free. No account, no subscription, no hidden fees.
Does my data get uploaded?
No. All encoding and decoding happens directly in your browser using JavaScript. Your data never leaves your device.
What is URL-safe Base64?
URL-safe Base64 replaces + with -, / with _, and removes trailing = padding. This makes the output safe to use in URLs without additional encoding.
Can I encode files to Base64?
Yes. Switch to File mode and upload any file. The tool converts it to a Base64 string that you can copy or download.
Can I preview Base64 images?
Yes. Switch to Image Preview mode and paste a Base64-encoded image string to see it rendered with dimensions and download option.
What is a data URI?
A data URI (data:mime;base64,...) is a way to embed file data directly in HTML, CSS, or JavaScript instead of linking to an external file.
Does it support UTF-8?
Yes. The tool properly handles UTF-8 text including emoji and non-ASCII characters.
Does this work on mobile?
Yes, all AllTools tools are mobile-optimized and work on iOS and Android browsers.

Related Tools

Coming Soon

URL Encoder/Decoder

URL Encoder/Decoder — free and instant

JSON Formatter & Validator

Format, validate, diff, and convert JSON with tree view and YAML export

Instant Private
Coming Soon

Hash Generator MD5/SHA

Hash Generator MD5/SHA — free and instant

Coming Soon

JWT Decoder

JWT Decoder — free and instant

QR Code Generator

Generate and customize QR codes with logos, presets, and batch mode

Instant Private

Password Generator

Generate passwords, passphrases, and PINs with full customization

Instant Private