Base64 encode and decode

UTF-8 safe Base64 with URL-safe variant, both directions.

Type or paste — it runs as you go.
Runs on your device

How to base64 encode and decode

  1. Paste text or Base64

    The tool detects which direction you probably want.

  2. Encode or decode

    Toggle URL-safe alphabet if you need it for tokens or URLs.

  3. Copy

    One click.

Frequently asked questions

Why does my decoded text look garbled?
The input was probably not UTF-8 text, for example binary data or a different encoding.
What is URL-safe Base64?
A variant using - and _ instead of + and /, with padding often removed, so it can appear in URLs and JWTs.
Is anything sent to a server?
No.

More developer tools