Toolbox / Base64 file converter Runs in your browser中文
Encoding & conversion

Base64 file converter

Convert local files to and from Base64, preview raster images and download decoded files.

Ctrl / ⌘ + Enter Run

Ready when you are

Less switching. More focus.Functional build · Validation in progress

Using this tool

Convert between local file bytes and Base64.

Example

Paste the data URL and decode. Text files have no image preview; downloaded bytes spell Hello.

Example action and settings

Action: Decode
Filename: demo.txt
MIME type: text/plain

Input / action

data:text/plain;base64,SGVsbG8=

Result / expected behavior

Decoded 5 bytes · text/plain; downloaded demo.txt contains Hello.

Scope and limitations

  • Each file is limited to 32 MiB; only common raster images are previewed, never executable SVG/HTML.
  • Accepts standard Base64, not Base64URL; invalid padding and noncanonical trailing bits are rejected.

Common mistakes

  • MIME and filename extensions do not convert file contents; a data URL supplies its own MIME instead of the raw-Base64 MIME field.

Related tools

SVG placeholder QR code generator

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.