What Base64 is for
Base64 turns any bytes into 64 safe text characters (A-Z, a-z, 0-9, + and /), so binary data can travel through systems built for text: email attachments, data URLs, JSON fields, HTTP Basic authentication headers and Kubernetes secrets. The output is about a third larger than the input, and it is encoding, not encryption: anyone can decode it.
Base64 vs Base64url
Standard Base64 uses + and / and pads with =. Those characters have meanings in URLs, so Base64url replaces them with - and _ and usually drops the padding. JWTs, many API tokens and URL parameters use Base64url. This decoder accepts both.
Text encoding pitfalls
Base64 encodes bytes, not characters. The browser’s built-in btoa fails on anything outside Latin-1 (accents, emoji, Hindi), which is why this tool encodes text as UTF-8 first. If decoded text shows strange characters, it was probably encoded from another character set. For tokens, see the JWT decoder.
Using it safely at work
Online developer tools are a common way secrets leak: people paste production tokens, customer records or private keys into a website that quietly logs them. This page does all its work in your browser with standard Web APIs, makes no network request with your input, and stores nothing, so it is safe to use with real data, and you can confirm that in your browser’s network panel. Even so, treat anything you paste as you would treat a screenshot: rotate a token that was exposed, never share links that contain it, and prefer command-line tools on the server itself for very sensitive material.