Base64 Encoder and Decoder

Encode and decode text and small files to Base64 or Base64URL. Inspect byte length and copy results for data URLs or APIs.

Files and content are processed locally in your browser and are not uploaded to our server.

About this tool

Convert UTF-8 text or small files to Base64, or decode Base64 into readable text or a downloadable file. Choose a URL-compatible form when preparing content for JWTs or URLs.

How to use

  1. Encode and decode text or small files
  2. URL-compatible Base64 form
  3. Display output size and final padding information
  4. Copy decoded text or download the decoded file
  5. Choose mode: Select encode or decode and text vs file input.
  6. Provide input: Paste a string or pick a file under the recommended size.
  7. Copy output: Grab Base64 text or save decoded binary locally.

Examples

Limitations

FAQ

What is URL-safe Base64?
It replaces "+" and "/" with "-" and "_" and may omit the final padding characters. This form is commonly used in JWTs and URLs.
Can I decode to a file?
Yes. Decoded binary can be downloaded with an appropriate file extension you choose.
Does encoding increase size?
Base64 expands binary size by roughly 33% due to 4-character encoding of 3 bytes.