Base64 Playground

The watch post: a note written by the real btoa. How many letters come out of its bytes, and who can read it back? An interactive Base64 playground: change…

Why it matters

Base64 is in image data URLs, JWTs, the Authorization: Basic header, email attachments, keys in config files. Knowing it is encoding, not encryption, stops secrets "hidden" in base64. Knowing btoa only takes Latin-1 explains InvalidCharacterError. Knowing base64url stops broken links.

The key idea

Base64 is a way of writing bytes, not a lock

Common mistakes

Try it in this playground