What Base64 is for
Base64 turns binary data into plain text made of letters, numbers and a couple of symbols. That lets you move images, files and tokens through systems built only for text, like email, JSON and URLs.
It isn't encryption. Anyone can decode it. Never treat Base64 as a way to hide a password.
Standard, URL-safe and MIME
Standard Base64 uses plus and slash characters, which cause trouble inside URLs. The URL-safe version, often called Base64url, swaps them for a dash and an underline character and usually drops the padding. JWTs use it.
MIME Base64 breaks the output into lines of fixed length, which email systems expect. Pick the variant the receiving system asks for. Using the wrong one is the most common reason a decode fails.
Text, files and images
Type or paste text to encode it, or paste a Base64 string to decode it. You can also upload a file, such as a PDF or an image, and get its Base64 back. For images, the tool shows a preview so you can confirm the decoded result is what you expected.
Text is handled as UTF-8, so emoji and accented characters survive the round trip. If you ever see broken symbols after decoding, the source was likely using a different character encoding.
Why the output is bigger
Base64 grows your data by about a third. Three bytes become four characters. That's the price of making binary safe for text. For a tiny icon inside a stylesheet it's fine. For a large photo, a normal file link is the better choice.
Checking if a string is valid
A valid Base64 string only uses the allowed characters, and its length works out to a multiple of four once padding is added. Equals signs may appear at the end. If decoding fails, look for stray spaces, line breaks that shouldn't be there, or a URL-safe string being read as standard.
Your data stays put
Encoding and decoding happen in your browser. Nothing you paste or upload is sent to a server, so it's reasonable to check a token or a small file here. Still, avoid pasting live secrets into any tool when you can avoid it.