Home › Tools

B64 Base64

Encode text as standard Base64 or URL-safe Base64, with or without padding, and decode it back.

About the Base64

Base64 writes bytes using letters, digits and two extra characters so the result is safe to paste into text. URL-safe Base64 swaps + and / for - and _.

How to use it

Questions

What is the = at the end?

It is padding so the length is a multiple of 4. “URL-safe, no padding” leaves it off. Decoding still works.

Why do some results use - and _?

Those are the URL-safe characters. Standard Base64 uses + and / instead.

More tools