Skip to content
ToolNestby WeTwo

Base64 Encoder and Decoder

Convert text to Base64 and back instantly, or turn an image or file into a data URL you can paste into HTML, CSS or JSON. Works with any language and emoji.

Runs in your browser. Your files never leave your device.

Mode

Images, PDFs or small files up to 5 MB. Gives a data: URL you can paste into HTML or CSS.

Base64 encode / decode: how to use it

  1. 1Choose Encode or Decode.
  2. 2Type or paste your text, or add a file to encode.
  3. 3Copy the result.

What Base64 is for

Base64 turns any data into plain letters, numbers and a few symbols so it can travel safely through systems that only handle text, such as email, JSON, URLs and HTML. It is used for email attachments, small images embedded in web pages, API keys in HTTP headers and JWT tokens.

Base64 is an encoding, not encryption. Anyone can decode it, so never use it to hide passwords or secrets.

URL-safe Base64 and data URLs

URL-safe Base64 swaps + and / for - and _ and drops the = padding, so it can be used in web addresses and file names. The decoder accepts both forms. Encoding a file gives a data URL such as data:image/png;base64,…, which you can paste into an img tag or a CSS background.

Frequently asked questions

Is Base64 encryption?

No. It's an encoding that anyone can reverse. Don't use it to protect secrets.

Does it support emoji and other languages?

Yes. Text is encoded as UTF-8, so every language and emoji round-trips correctly.

Can I convert an image to Base64?

Yes. In Encode mode, add the image to get a data URL.

Is anything sent to a server?

No. It all runs in your browser and nothing you enter is stored or sent.