Base64 Encode / Decode
Encode and decode Base64.
Input
Output
What is Base64?
Base64 is an encoding scheme that turns binary data or text into a string of ASCII characters (A–Z, a–z, 0–9, plus two symbols). It is widely used in data URIs, APIs, and config files to embed or transfer binary safely where only text is allowed.
Why this tool is useful
Developers often need to encode or decode Base64 for tokens, small files, or API payloads. Doing it in code is easy but sometimes you want a quick check in the browser. This tool encodes text to Base64 and decodes Base64 back to text; invalid input shows an error. No data leaves your device.
Example usage
Enter "hello world" and choose Encode to see aGVsbG8gd29ybGQ= live. Switch to Decode and paste that string to recover "hello world". Use it to inspect JWTs (payload only), debug API responses, or prepare inline data.
How to use this tool
Paste text or Base64 in the input box. Choose Encode or Decode; output updates as you type. Invalid Base64 in decode mode shows an error. For URL-safe encoding try URL Encode; for formatting structured data try JSON Formatter.