Encode text to Base64 or decode Base64 back to plain text instantly. Supports standard and URL-safe Base64 (base64url). No data sent to any server.
How to use this tool
Choose Encode to convert plain text to Base64, or Decode to convert Base64 back to text.
Paste your text in the input box — the result appears instantly as you type.
Use URL-Safe mode (base64url) for tokens, URLs, and JWT payloads — replaces + with – and / with _.
Click Swap to move the output back to the input — useful for quickly testing encode then decode.
Base64 encoding is used everywhere in modern web development. Common uses include encoding JWT tokens and API credentials, embedding small images directly in CSS or HTML as data URIs, encoding binary data in JSON or XML payloads, HTTP Basic Authentication headers, MIME email attachments, and storing binary data in text-based formats. This tool is useful for developers debugging API responses, security professionals analyzing tokens, and anyone who needs to quickly encode or decode Base64 data without installing software.
