← All Tools

Base64 Converter🔒 100% local

Encode text or files to Base64, or decode Base64 back to text. All processing happens locally in your browser.

Drag and drop any small file (image, svg, font) to convert to Data URI, or browse files

Related Tools

Base64 EncoderBase64 File DecoderURL Encoder

Encodes text to Base64 and decodes Base64 back to text, updating as you type instead of waiting for a button. In encode mode you can also drop a file onto the page and get a data URI, which is the form an inline image or a small font takes in a stylesheet. Both directions run in the browser, so a payload you decode stays in the tab.

How to use it

  1. Choose the Encode tab for text to Base64, or Decode for Base64 back to text.
  2. Type or paste into the left box. The right box fills in as you go, and a decode that fails reports an error there.
  3. In encode mode you can drag a small file onto the drop zone instead; the output becomes a data URI and the input box is replaced with the file name and size.
  4. Press Copy Output, or Download Decoded File when the decoded text itself starts with data:.

Worked example

Hello, World!becomesSGVsbG8sIFdvcmxkIQ==
café 🚀becomesY2Fmw6kg8J+agA==

Accented text and emoji are encoded as their UTF-8 bytes, so they survive a round trip through the decoder.

not base64!!becomesInvalid Data: Ensure the input fits Base64 operational rules.

The fixed message the decoder prints for anything it cannot parse.

When to use it

What it does not do