DevToolMage

Encoding

Base64 Encoder and Decoder

Convert text to Base64 or back again, with a URL-safe option. Base64 hides nothing; anyone can decode it.

This tool can receive sensitive values. Processing stays in your browser. Do not paste production secrets, private keys, or live access tokens. DevToolMage does not upload or log the input.

Base64 is encoding, not encryption.

How it works

Text is converted with TextEncoder or TextDecoder, then standard or URL-safe Base64. Invalid decode input returns an error.

Input and output

Input is Unicode text. Output is Base64 or decoded Unicode text. Binary file upload is out of scope.

Examples

UTF-8

Encoding café or a snowman should survive a round trip.

JWT fragment

A JWT header is URL-safe Base64 without padding. Use decode with URL-safe on.

How to use this tool

  1. Choose encode or decode.
  2. Optionally enable URL-safe alphabet.
  3. Paste text and copy the result.

Limitations

  • Not an image or file converter.
  • Invalid Base64 does not guess a repair.
  • Encoding is not confidentiality.

Questions

Is Base64 encryption?

No. It is encoding. Treat encoded output as readable by anyone who has it.

Does this convert images to Base64?

This page is text in and text out. File-to-data-URL conversion is a different job and is not launched here.

What is URL-safe Base64?

It replaces + and / with - and _ so the string is safer in URLs. Padding may be omitted. This is the JWT alphabet.

Related tools