ToolsYard

Base64 Encode/Decode

Switch between Encode and Decode, then type or paste your text — the result updates as you type.

What this tool does

This tool converts text to Base64 encoding and decodes Base64 strings back to plain text, updating the result live as you type. Base64 is a way of representing binary or text data using only 64 printable characters, commonly used to safely embed data in places that only support plain text, such as URLs, email attachments, or JSON payloads. All conversion happens locally using UTF-8 text encoding — nothing is uploaded.

Example use case

Developers often need to decode a Base64-encoded JWT payload, API key, or embedded image data URI to inspect its contents, or encode a string to paste into a configuration file or HTTP header that requires Base64 format. Switching between Encode and Decode mode lets you go in either direction without leaving the page.

Note on invalid input

Not every string of text is valid Base64 — it must use only the Base64 character set and correct padding. If you paste something that isn't valid Base64 while in Decode mode, the tool will tell you immediately rather than showing garbled output.