What is Base64 Encoder and Decoder?
A browser-based Base64 encoder and decoder. Convert any text to Base64 encoding for use in data URIs, API authentication headers, email attachments, or config files. Decode Base64 strings back to readable text. Supports both standard Base64 and URL-safe Base64 (using - and _ instead of + and /).
quickAnswer
Encode text to Base64 or decode Base64 back to text. Supports standard and URL-safe Base64. All processing happens locally in your browser.
limitations
- Designed for text encoding/decoding — encoding large binary files (over a few MB) may be slow and is better handled by dedicated tools.
- Does not support chunked or streaming Base64 encoding — the entire input is processed at once.
- UTF-8 text is assumed for both encoding input and decoding output — other character encodings may produce unexpected results.
How to use this tool
- Choose Encode (text to Base64) or Decode (Base64 to text).
- Paste your input into the text area.
- Toggle URL-safe mode if working with URLs or filenames.
- Copy the result.
What you can use it for
- Encode credentials for a Basic Authentication header (username:password to Base64).
- Decode a Base64-encoded JWT payload or API response to see the original content.
- Create a Base64 data URI for embedding small images or SVGs directly in CSS or HTML.