Skip to content
SolveKit

Base64 encode & decode.

Convert text and files to Base64 and back — with UTF-8 handled correctly, URL-safe output, and previews of decoded images.

Updated · Free · Runs in your browser — nothing is uploaded

Mode

Text or file

Base64

18 B in → 24 B out (Base64 is about a third larger).

At a glance

Last updated

  • The Base64 tool encodes text (as UTF-8) and files to standard or URL-safe Base64 and decodes Base64, Base64URL and data URLs back to text or files.
  • Decoded binary data is identified by its file signature, with image previews.
  • It runs entirely in the browser; nothing you paste is sent to a server.

What Base64 is for

Base64 represents binary data using 64 safe characters, so it can travel through text-only places: JSON, email, HTML and CSS data URLs, HTTP headers and environment variables. It makes data about a third larger and is not encryption — anyone can decode it.

URL-safe Base64 (Base64URL) swaps + and / for - and _ and usually drops the = padding. It's used in JWTs and URLs. The decoder accepts both.

Frequently asked questions

Is Base64 encryption?

No. It's an encoding anyone can reverse instantly. Never use it to hide passwords or secrets.

Why do emoji and accents decode correctly here?

Text is encoded as UTF-8 before Base64, which is what other tools and languages expect. The browser's plain btoa() can't handle these characters on its own.

Can I turn an image into a data URL?

Yes. Choose Encode a file, pick the image, and use Copy data URL to paste it into HTML or CSS.