Skip to main content

Base64 Converter

Encode files into Data URI format for HTML/CSS embedding, or decode Base64 strings back to files.

Upload a file to encode

Images, documents, audio or archives

Base64 Encoder and Decoder Online

Convert binary files into Base64 strings and Data URIs, or decode Base64 text back into downloadable files.

How to use this tool

1

Select Mode

Choose whether you want to encode a file to Base64 or decode text back to a file.

2

Upload or Paste

Encoding accepts files up to 10 MiB. Decoding accepts up to 10 485 760 characters, including any Data URI prefix. The Base64 part alone is limited to 8 388 608 characters.

3

Convert & Save

Click Encode or Decode to copy the Base64 output or download the reconstructed file.

Settings & options breakdown

Dual Mode Conversion

Encode any binary file to raw Base64 and Data URI or decode text back to a file.

Instant Clipboard Copy

Copy generated Base64 strings and CSS Data URIs directly with one click.

Practical scenarios

Inlining Images in CSS

Embed small icons and logos directly into stylesheets without additional HTTP requests.

API Payload Preparation

Encode binary attachments and PDF certificates into JSON payloads for REST APIs.

Inspecting Encoded Payloads

Decode unknown Base64 tokens and file strings received in webhooks or logs.

Limitations & how it works

Technical logic

Encoding accepts files up to 10 MiB. Decoding accepts up to 10 485 760 characters, including any Data URI prefix. The Base64 part alone is limited to 8 388 608 characters.

  • Base64 encoding increases data size by approximately 33% compared to the original binary format.
  • Encoding accepts files up to 10 MiB. Decoding accepts up to 10 485 760 characters, including any Data URI prefix. The Base64 part alone is limited to 8 388 608 characters.

Privacy & limits

Periodic cleanup

Temporary files are cleaned up periodically.

Encoding accepts files up to 10 MiB. Decoding accepts up to 10 485 760 characters, including any Data URI prefix. The Base64 part alone is limited to 8 388 608 characters.

Sent to the server for processing.

Frequently Asked Questions (FAQ)

What is the difference between raw Base64 and Data URI?

Raw Base64 contains only the encoded characters, while Data URI includes the MIME type header for HTML and CSS embedding.

What is the maximum file size for Base64 conversion?

Encoding accepts files up to 10 MiB. Decoding accepts up to 10 485 760 characters, including any Data URI prefix. The Base64 part alone is limited to 8 388 608 characters.

Can I decode Base64 with or without Data URI prefix?

Yes, the decoder automatically strips 'data:image/...;base64,' prefixes before decoding the payload.

How long are uploaded files and decoded outputs stored?

Temporary files are cleaned up periodically.