Select Encode for normal text or files, or Decode for Base64 strings. Use Auto only if you want an educated guess.
Text & files · In your browser
Base64 Encoder & Decoder
Encode UTF-8 text and files, decode standard Base64 or Base64URL, inspect data URLs and decode multiple lines in one go. Works privately in your browser without signup or uploads to our server. Base64 is encoding, not encryption.
Auto guesses the direction. Choose Encode or Decode for an exact choice; use Decode for binary Base64.
Maximum source file, UTF-8 text or decoded output: 5 MiB. Base64 text input: 8 MiB. Files are read locally.
Text preview only. Downloads preserve the full original bytes.
JWT inspection
Read-only inspection. The signature and authenticity are not verified. Do not use these claims to make authentication or authorization decisions.
Header
Payload
Signature (Base64URL)
Convert multiple Base64 lines
Each non-empty line is processed independently, with errors shown beside the result. Nothing is sent to our server.
| Line | Input | Output | Error |
|---|
Maximum 300 lines / 200,000 characters. The table previews up to 60 rows; CSV includes every result, including error lines. Batch decoding accepts UTF-8 text only. To decode image, PDF or other binary Base64 data, use the main Decode tool above and download the original bytes.
How to encode or decode Base64
Use the text box, open a Base64 text file, or choose a binary file. Standard and URL-safe alphabets are supported.
Copy the full text result or download the original decoded bytes. Batch conversion provides a CSV with results and per-line errors.
Base64 FAQs
What is Base64 encoding?
Base64 represents binary data using text characters. It is useful for APIs, email attachments and data URLs. It is not encryption and provides no confidentiality.
What is the difference between Base64 and Base64URL?
Base64URL replaces + with - and / with _. Padding may be omitted, making the output easier to embed in URL-safe identifiers.
Can I decode a Base64 image or PDF?
Yes. Select Decode and download the resulting original bytes. Image files may be previewed, while PDF and other binary files are available as downloads.
Are my Base64 files uploaded to your server?
No. Conversion and batch processing run locally inside your browser. You can clear your input when finished; do not paste private material into shareable URLs.
Why can a Base64 string fail to decode?
Malformed characters, mixed alphabets, incorrect padding or invalid encoded bytes can cause errors. For binary decoded bytes, use the file download instead of treating them as UTF-8 text.
How large can my files and batches be?
The single-file tool supports up to 5 MiB of source or decoded bytes and up to 8 MiB of Base64 text. Batch mode supports up to 300 lines and 200,000 characters. It decodes UTF-8 text only; use the single-file converter for images, PDFs or other binary data.
Standard & URL-safe
Decode standard (+ /) or URL-safe (- _) Base64. ASCII whitespace is ignored and missing trailing padding is restored. Invalid characters, mixed alphabets and incorrect padding are reported.
Files stay intact
Encode any file type. Decoded downloads preserve every original byte. PNG, JPEG, GIF and WebP images can be previewed up to 24 megapixels; other binary files show a hexadecimal preview.
Clear limits, useful results
Large text previews show the first 65,536 characters; Copy and Download use the full result. JWT inspection supports three-part tokens up to 64 KiB and never verifies signatures.