Base64 Encoder / Decoder

Free

Encode and decode Base64 — text, files, or images — entirely in your browser.

Runs entirely in your browser. Nothing you enter is uploaded or stored.

Plain text
Base64

How it works

What is Base64, and why use it?

Base64 turns arbitrary binary data into plain ASCII text, using only letters, digits, +, /, and = for padding. It exists because many formats — JSON, XML, URLs, email — are built to carry text safely but not raw binary. Base64 lets you embed an image, a file, or any byte sequence inside those formats: a data URI in CSS, an attachment in an email, a binary blob in a JSON field.

Is Base64 the same as encryption?

No — this is the most common misunderstanding. Base64 is encoding, not encryption. It provides zero confidentiality: anyone can decode it instantly with no key, no password, and no special tool (this page does it in your browser with two built-in functions). Never use Base64 to "hide" sensitive data — treat it as a format conversion, not a security measure.

How do I turn an image into a data URI?

Use the Image tab: drop in an image and it produces a full data:image/png;base64,... string (or the matching MIME type), ready to paste directly into an src attribute or a CSS background-image. This is most useful for small images — icons, small illustrations — since embedding a large image this way bloats the HTML or CSS file that contains it.

Is anything I upload here stored or sent anywhere?

No. All encoding and decoding — text, files, and images — happens locally in your browser using native Web APIs. Nothing is uploaded, logged, or transmitted.

Related tools