Base64 encode and decode
Encode text or a file with Base64, or decode Base64 back to text or a file. Non-ASCII characters (UTF-8) are handled correctly.
How to use it
- Choose Encode or Decode and type on the left; the result updates as you type.
- The URL-safe option uses - and _ instead of + and / (the form used in JWTs and URLs). Both forms are recognised automatically when decoding.
- If you choose a file, its contents are shown as Base64. If decoded data is not text, you can download it as a file; it never leaves your device.
FAQ
Is Base64 encryption?
No. Base64 is an encoding; it needs no key and anyone can decode it. It does not protect passwords or secrets.
Why is the encoded data larger?
Base64 writes every 3 bytes as 4 characters, so the result is about a third larger. The line wrap option adds a line break every 76 characters (MIME style).
Why is decoded data not shown as text?
If the data is not valid UTF-8 text (an image or compressed file, for example) it is not shown as text; you can download it as a file.
Can you see the data I paste?
No. The tools run in your browser; what you enter is not sent to our server and is not stored anywhere. When you open the page, the web server keeps an access log as on any site (IP address, date, requested address, browser identifier); it contains none of your data and is deleted after about 10 days. Your browser remembers only your preferences (such as indentation). See the privacy policy for details.