Loading…
Encode any text string or file as Base64, or decode Base64 back to its original form. Useful for embedding binary data in JSON, HTML, or HTTP headers.
Use Cases
- ›Encoding credentials for HTTP Basic Auth headers
- ›Embedding small images or fonts as data URIs in CSS
- ›Encoding binary payloads for transport in JSON APIs
- ›Decoding Base64-encoded JWTs or email attachments
Example
Input
Hello, World!
Output
SGVsbG8sIFdvcmxkIQ==
FAQ
Does it support binary files, not just text?
Yes. Switch to the File tab to upload and encode any file as a Base64 data URI.
What's the difference between standard and URL-safe Base64?
URL-safe replaces + with - and / with _, making the output safe for URLs without percent-encoding.