Base64 Encode / Decode

Runs in your browser, nothing is uploaded. Your input is saved in the page link.

Encode text to Base64 or decode it back, including URL-safe Base64.

Loading tool…

About this tool

Base64 turns bytes into plain ASCII text so they can travel through systems that only handle text, such as JSON fields, URLs, and email. This tool handles UTF-8 text correctly and understands both the standard and URL-safe alphabets.

Questions

What is URL-safe Base64?

It replaces + and / with - and _ so the result can sit in a URL or filename without escaping. JWTs use it, usually without trailing = padding.

Is Base64 encryption?

No. Anyone can decode it, so never use it to protect secrets.

Why does decoding say the bytes are not valid text?

The Base64 probably holds binary data, such as an image or a compressed file, rather than UTF-8 text.

Keyboard shortcuts

Base64 Encode / Decode

CtrlEnter
Copy the output

Everywhere

CtrlK
Search tools and actions
/
Search tools (when not typing)
?
Show this list (when not typing)
Esc
Close a dialog or menu