Base64 Encoder & Decoder

Encode and decode Base64 text, files, and images instantly. URL-safe mode, data URI generation, and full UTF-8 support. 100% client-side — your data never leaves your browser.

100% Client-SideNo UploadFree ForeverNo Sign-up
ENCODEText → Base64
0 chars0 B
0 chars/0 B

What is Base64?

Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format. It uses a set of 64 characters — uppercase letters (A-Z), lowercase letters (a-z), digits (0-9), and two symbols (+ and /) — to encode arbitrary bytes into text that can be safely transmitted over text-based protocols.

Common use cases include embedding images directly in HTML or CSS via data URIs, encoding binary attachments in email (MIME), transmitting data through JSON APIs, and storing complex data in cookies or URL parameters. Base64-encoded data is roughly 33% larger than the original binary data.

This tool runs entirely in your browser using the native btoa() and atob() functions with TextEncoder/TextDecoder for proper UTF-8 handling. No data is ever sent to a server.

Ad

Frequently Asked Questions

Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It uses 64 characters (A-Z, a-z, 0-9, +, /) to encode data, making it safe to transmit through text-based protocols like email, JSON, and HTTP headers.
Yes, absolutely. All encoding and decoding happens 100% in your browser using JavaScript. Your data never leaves your device and is never sent to any server. There are no uploads, no tracking, and no storage of your data.
URL-safe Base64 replaces the + and / characters with - and _ respectively, and removes trailing padding (=). This makes the encoded string safe to use directly in URLs, query parameters, and filenames without additional percent-encoding.
Yes. Switch to the File or Image tab to encode any file or image to Base64. For images, the tool generates a data URI you can embed directly in HTML img tags or CSS background-image properties, eliminating extra HTTP requests.
No. Base64 is an encoding scheme, not encryption. It transforms data into a different text representation but provides no security whatsoever. Anyone can decode Base64 back to the original data instantly. Never use Base64 to protect sensitive information.

Related Tools