The Base64 Encoder / Decoder helps you quickly convert text/data to Base64 (and back).
Mode is detected automatically: paste text → Base64 encode; paste Base64 → decode. You can also drag & drop a file to encode it as a data URL and preview it when possible.
Input
convert
Output
How to use the Base64 tool
- Charset: choose UTF-8, Latin-1, or ASCII to control how bytes are interpreted.
- Variant: standard or URL-safe (web friendly Base64).
- Options: wrap to 76 characters and remove spaces/newlines in input.
- Advanced output: image preview (PNG/JPEG/GIF/WebP) when decoding Base64 that contains image data.
In “How to use”, you get ready-to-copy examples: inline SVG in CSS, fonts in CSS, JWT decoding (header/payload only), and snippets for WordPress REST API Basic Auth.
Note: JWT signature verification requires the private key.