Base64 Encode/Decode

Encode and decode Base64 with correct UTF-8 handling via TextEncoder/TextDecoder, optional URL-safe output, and clear errors for invalid input.

Encode and decode Base64 with UTF-8 support.

Output ready, 24 B

How to use Base64 Encode/Decode

  1. Paste text or Base64.
  2. Choose encode or decode and whether URL-safe mode is needed.
  3. Copy the result.

Frequently asked questions

Does it support UTF-8?

Yes. Text is encoded and decoded as UTF-8.

What is URL-safe mode?

It uses - and _ instead of + and / and omits padding.

What happens on invalid Base64?

A clear error message is shown.

Is my input uploaded?

No. Processing is local.