Base64 Encoder / Decoder

A base64 converter turns binary data — text, an image, any file — into plain ASCII text that's safe to embed in places that only accept text, and back again. It's what puts small images inside Data URIs, carries the username and password in HTTP Basic Auth headers, and embeds files in JSON and email. Encode text, images and files to Base64, or decode Base64 back into text, an image preview or a downloadable file, with URL-safe and Data URI output. Everything runs in your browser.

🕒 Updated October 25, 2026 🔐 Text, files & images 🔒 100% client-side 🆓 Free forever 4.5 📖 Read the guide

1 Choose input

⚠
📁
Drag & drop a file here, or browse

Accepts standard Base64, URL-safe Base64, and full Data URIs — whitespace and line breaks are ignored automatically.

2 Result

Encode text or a file on the left to see the Base64 result here.
Rahib Ali
Written & maintained by Rahib Ali
AI Engineer | Senior Full-Stack Developer | Python · PHP/Laravel · LLMs · AI Agents · 12+ years experience · Updated October 25, 2026

Handles text, images and arbitrary files client-side — including auto-detecting image data on decode for a live preview and download, not just plain text round-trips.

Available for SaaS & AI automation projects → Hire me · Portfolio · Services