Developer
Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to readable text, instantly and in your browser. UTF-8 safe (emoji and non-Latin text work), with an optional URL-safe alphabet for tokens and query strings. Nothing is uploaded, no sign-up.
0 characters
Common uses
Data URIs
Embed a small image or font directly in CSS/HTML as data:...;base64,... to save a request.
JWT & tokens
JSON Web Tokens are URL-safe Base64. Decode the header/payload segments to inspect claims (they are not encrypted).
API payloads
Move binary data through JSON or XML fields that only accept text, without corruption.
Basic Auth headers
The Authorization: Basic header is base64("user:pass"). Decode one to see the credentials it carries.
Email attachments
MIME encodes attachments as Base64 so binary files survive text-only mail transport.
Config & secrets files
Kubernetes Secrets and many config formats store values as Base64. Decode to read, encode to set.
Standard vs URL-safe Base64
Both encode the same data; they differ only in three output characters. Decoding here accepts either, and restores missing padding automatically.
Standard
Uses
+and/, pads the end with=. The default for email, data URIs, and most APIs.URL-safe
Replaces
+with-,/with_, and drops=padding, so it is safe in URLs, filenames, and JWTs.