Encode and decode Base64

Convert text to and from Base64, Base64URL or URL encoding, or turn a small file into a data URI. Everything happens in your browser.

Or drop a file for a data URI Useful for embedding a small image in CSS or HTML.

Deskshed, our desktop app for Windows. It has real save dialogs, works offline, and adds whole-folder jobs for photos and PDFs. Pay once: $5 for the first 1,000 buyers, then $9.

See Deskshed

Base64 encoder at a glance

Cost
Free, with no watermark
Account
None needed
Your data
Stays in your browser. How to check
You get
Encoded or decoded text
Limits
Your browser's memory for files

How to use it

  1. Paste your text

    Or drop a file to get a data URI.

  2. Pick the encoding

    Base64 for general use, Base64URL for tokens and links, URL encoding for query strings.

  3. Encode or decode

    Then copy the output.

Base64 encoder: common questions

Is Base64 encryption?

No. Anyone can decode it, so it hides nothing. It only turns data into text that's safe to send through systems built for text.

Why is the output longer than the input?

Base64 uses four characters for every three bytes, so the result is about a third longer.

What's the difference between Base64 and Base64URL?

Base64URL swaps the plus and slash for a hyphen and underscore, and usually drops the padding, so it's safe in web addresses. It's the form used in JSON Web Tokens.