Base64 Encoder / Decoder

Encode and decode text and files to and from Base64 as you type. With URL-safe variant, data URLs and detection of images and files.

Frequently asked questions

What is Base64 used for?

Base64 turns any data into plain text, for example to embed images in HTML or CSS, send email attachments or store data in JSON.

Is Base64 encryption?

No. Base64 is only an encoding and anyone can decode it right away. It is not suitable for secrets.

How does this tool work?

Base64 is a method that turns any data into a string of letters, digits and a few special characters.

In the Text tab choose encode or decode, the result appears in the right field as you type. Options are the URL-safe variant (Base64url, e.g. for JWT) and line wrapping after 76 characters as in emails. Decoding also accepts data URLs, missing padding and line breaks. If the data contains a file instead of text, such as a PNG or PDF, the tool detects the type, shows images and offers the file for download. In the File tab any file becomes Base64, a data URL, or ready-made CSS or an img tag.

Where are my data processed?

Only in your browser. Your data is not sent to any server.

The tool calculates and converts with JavaScript right on your device. Input and files are not sent to us or anyone else. You can check this yourself: load the page, disconnect from the internet, and the tool keeps working in the open tab.

No Server UploadNo sign-upRuns Offline in Tab

How it works and how to check it