Skip to content

Free text & data tool

Base64 encode and decode

Convert text to Base64 and back, with full Unicode support, in your browser.

Free, no sign-up to use · what you type or add stays on your device · works offline · How it works

What do you want to do?
Mode

SGVsbG8sIHdvcmxkIQ==

Base64 is an encoding, not encryption: anyone can decode it. Everything runs in your browser.

Ask an AI

Opens a free chat with this prompt. Check it first: it goes to the site you pick. Do not send passwords, production tokens or real customer data.

ChatGPT Claude Perplexity

Sponsor this tool

About this tool

Switch between "text to Base64", "Base64 to text", or "file to Base64" to get a ready-to-use data URI for any file. Unicode is handled correctly in text mode (emoji and accented characters included). Everything runs locally - nothing is sent to a server - so it is safe for snippets or files you would not want to paste into a random website.

How to use it

  1. 1 Choose a mode: encode text, decode text, or convert a file.
  2. 2 Paste your input, or choose a file for file mode.
  3. 3 The converted result appears in the output box.
  4. 4 Click "Copy output" to grab it.

Frequently asked questions

Does it handle emoji and accents?

Yes. Encoding uses a UTF-8-safe path, so any Unicode text round-trips correctly.

What happens with invalid Base64 on decode?

You get an "(invalid Base64 input)" message instead of a crash - check for stray characters or missing padding.

Is my data uploaded?

No. The conversion is done entirely in your browser.

What is a data URI used for?

A data URI embeds a small file (an icon, a font, a tiny image) directly inside HTML or CSS instead of a separate request - useful for small assets or quick prototyping.

Embed this tool

Add this free tool to your own website — copy the code below. It stays up to date automatically.

Tools for your site →

More in Developers

Developers · Browse all 122 free tools