Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back to readable text. Supports UTF-8 characters such as accents and emoji, and the URL-safe Base64 variant used in JWTs and web tokens.

Free · No sign-up Developer Utilities

How to use the Base64 Encoder & Decoder

  1. Choose Encode or Decode.
  2. Paste your text or Base64 string.
  3. Toggle URL-safe mode if needed.
  4. Copy the result.

Examples

Hello, world! encodes to SGVsbG8sIHdvcmxkIQ==. In URL-safe mode, + and / become - and _, and padding = is removed.

How it works

Base64 represents binary data using 64 printable characters, turning every 3 bytes into 4 characters (about 33% larger). Text is first converted to UTF-8 bytes. Base64 is an encoding, not encryption – anyone can decode it, so never use it to protect secrets.

Frequently asked questions

Is Base64 secure?
No. Base64 is reversible by anyone. Use proper encryption for sensitive data.
What is URL-safe Base64?
A variant that replaces + and / with - and _ so encoded values can be used safely in URLs and filenames, as in JSON Web Tokens.

Related guides