How to use it
- Choose Encode or Decode.
- Type or paste text; the result appears instantly. Text is treated as UTF-8, so Hindi and emoji work correctly.
- Turn on URL-safe for Base64 that goes into URLs, file names or JWTs (uses - and _ and no = padding).
- To encode a file, pick it under Encode a file and copy it as plain Base64 or as a data URL.
What Base64 is for
Base64 turns any data, including images and binary files, into plain letters and digits so it can travel through systems that only accept text: JSON fields, email, HTML and CSS, environment variables and HTTP headers such as Basic authentication. It is an encoding, not encryption: anyone can decode it, so never use it to hide passwords or secrets.
Encoded data is about a third larger than the original, which is why small icons are often embedded as data URLs but large photos are not. The decoder accepts standard and URL-safe Base64, with or without padding, line breaks or a data: prefix. If the decoded bytes are not text, for example an image, you can download them as a file.
Common uses
Embed a small image in HTML or CSS as a data URL, read the contents of a Kubernetes secret, decode an email attachment or a SAML response, or create a Basic auth header from username:password for testing.
Questions
- Is Base64 encryption?
- No. It is a reversible encoding that anyone can decode. Use real encryption for secrets.
- Why does decoding show strange characters?
- Either the data is binary (an image or file), which you can download instead, or it was encoded from a non-UTF-8 text encoding.
- What is URL-safe Base64?
- A variant that uses - and _ instead of + and / and usually drops the = padding, so it can be used in URLs and file names. JWTs use it.
- Is what I paste sent to a server?
- No. The tool runs as JavaScript in your browser. Your text, files and keys stay on your device, so it is safe to use with internal data, tokens and customer records. It keeps working offline after the page has loaded once.