Base64 encoder and decoder
Convert text or any file to Base64 and back. Supports the URL-safe variant, line breaks and data URI prefixes, and detects when decoded content is binary.
Processed 100% in your browser
Output
Ctrl + Enter runCtrl + C copy result
How to use
- 1Paste the text or Base64 string into the input panel.
- 2Click “Encode” or “Decode” (enable URL-safe if needed).
- 3To encode a file, drag it onto the drop zone below.
- 4Copy or download the result; if it is binary, download it as a file.
Use cases
- Embed small files in JSON, HTML or CSS.
- Read the contents of Base64-encoded tokens or headers.
- Generate URL-safe Base64 values for JWTs or URL parameters.
- Recover a file from its Base64 representation.
Frequently asked questions
What is Base64?
An encoding that represents binary data using 64 printable ASCII characters so it can travel through channels that only accept text.
How is URL-safe Base64 different?
The URL-safe variant replaces “+” with “-” and “/” with “_”, and usually drops the “=” padding, so it can be used in URLs and file names without escaping.
Is Base64 encryption?
No. It is a reversible encoding that anyone can decode; it does not protect information.