Base64 Converter

Encode text to Base64, decode Base64 back to text, convert any file or image into a Base64 data…

TEXT · FILE · IMAGE FULL UTF-8 URL-SAFE OPTION 100% PRIVATE
Free Professional Tool | No Registration Required | Updated: January 2026

Instant Base64 Conversion

Everything runs locally in your browser — your data never leaves your device.

UTF-8 Safe File & Image Support No Upload
0 chars
0 chars

Upload a File

Drop a file here or click to browse

Any file type · Max recommended 5 MB

Base64 Output

0 chars

Tip: data URI prefixes like data:image/png;base64, let you embed files directly inside HTML or CSS.

0 chars

Extension is added automatically based on the detected MIME type.

Decoded File

Waiting for input…

0 bytes · unknown

Decoding happens entirely in your browser. No data is uploaded.

Complete Base64 Guide

What Is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data using only 64 printable ASCII characters: A–Z, a–z, 0–9, + and /, with = used for padding. It is not encryption — anyone can decode Base64 with a single click — but it is perfect for transporting binary data through systems that only handle text.

Where Base64 Is Used

  • Data URLs: Embedding images, fonts and small files directly inside HTML, CSS or JavaScript.
  • Email (MIME): Attachments and embedded images are encoded as Base64 inside the message body.
  • APIs and JSON: Transmitting binary payloads over text-based protocols.
  • JWTs: JSON Web Tokens encode their header and payload as URL-safe Base64.
  • Basic Authentication: The Authorization: Basic header sends base64(user:pass).

Base64 Size Overhead

InputBase64 OutputOverhead
3 bytes4 characters+33%
1 KB~1.37 KB+37%
100 KB image~137 KB text+37%
1 MB file~1.37 MB+37%

URL-Safe vs Standard Base64

Standard Base64 uses + and /, which have special meaning inside URLs. URL-safe Base64 (also called Base64url) replaces them with - and _ and often strips the = padding. Use URL-safe Base64 whenever the encoded value will appear inside a URL, filename or JWT.

How to Use This Converter

  1. Text ↔ Base64: Paste or type text on the left, click Encode (or just watch it convert live), then copy the Base64 on the right.
  2. File → Base64: Drop any file on the upload zone. Enable data URI prefix if you want to embed it in HTML/CSS.
  3. Base64 → File: Paste a Base64 string or a full data URL and download the decoded file instantly.

Pro Tip: When inlining images, keep them under ~10 KB. Base64 inflates size by ~33%, so large images embedded as data URIs will bloat your HTML and hurt page speed. Prefer <img src="…"> for anything bigger.

Frequently Asked Questions

No. Base64 is encoding, not encryption. Anyone can decode it instantly — it provides zero security. Never use Base64 to protect passwords, secrets or personal data. Use proper encryption (AES, TLS, bcrypt) for those needs.

Yes. This tool encodes text using UTF-8 first, then Base64. That means emojis (😀), accented characters (café), Arabic (مرحبا), Chinese (你好) and every other Unicode character round-trips correctly. Simple btoa()-only converters break on these — ours doesn't.

No. All encoding and decoding runs 100% locally inside your browser using the native TextEncoder, FileReader and btoa/atob APIs. Nothing is ever sent over the network.

Because conversion is in-memory, there is no hard limit, but very large files (100 MB+) can slow down your browser. For smooth performance we recommend keeping files under 5 MB. For bigger files, use a desktop tool like base64 on Linux/macOS.

Base64 represents every 3 bytes of input using 4 ASCII characters. Since each ASCII character takes 1 byte, that's 4 bytes of output for 3 bytes of input — a 33% increase. Some implementations add line breaks, pushing it closer to 37%.

Ready to Encode or Decode?

Use the tabs above to convert text, files and images to and from Base64 — instantly and privately.

Updated: January 2026 | Free for Commercial Use | 100% Client-Side Processing

Why Choose Our Base64 Converter?

Instant Conversion

Live encoding and decoding as you type — no button-mashing required.

100% Private

Everything happens in your browser. Your files and text never leave your device.

Files & Images

Convert any file type and preview images inline before downloading.

Full UTF-8

Emojis, accents and every language works — not just ASCII.

More Tools You'll Love