Dev Tools
  1. All dev tools
  2. Base64 encode and decode

Base64 encode and decode

Convert text or files to Base64 and back. Handles any language and emoji correctly, and the URL-safe variant used in JWTs and links.

How to use the base64 encode and decode

  1. Choose Encode or Decode.
  2. Type or paste text, or pick a file to encode.
  3. Copy the result. Binary data decodes to a file you can save.

Questions

Why do other tools garble accents and emoji?

The browser's built-in btoa() only handles Latin-1 characters. This tool converts text to UTF-8 bytes first, so "héllo ✓" round-trips correctly.

What is URL-safe Base64?

A variant that uses - and _ instead of + and /, and drops the = padding, so the result can go in URLs and file names. JWTs use it. Decoding accepts both forms.

Is Base64 encryption?

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

Is my data sent anywhere?

No. Everything runs in your browser with JavaScript. What you paste is never sent to a server, and the site's security policy stops the page from connecting to any other website. That matters for tokens, keys and customer data, which people paste into tools like this every day.