Base64 decode
base64_decodeDecode Base64 text, including URL-safe and data URI inputs, to return UTF-8 content inline or write binary output to a file with the detected extension.
Instructions
Decode Base64 (standard or URL-safe, padding optional, whitespace and data: URI prefix allowed). Valid UTF-8 text is returned inline; binary data (or anything when "output" is given) is written to a file whose extension comes from the detected type (PNG, JPEG, GIF, WebP, BMP, PDF, ZIP, gzip, MP3, Ogg, MP4, WOFF2, SVG, JSON). Web version: https://s3eidat.github.io/base64-kit/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | Yes | The Base64 text to decode (may be a data: URI). | |
| output | No | Where to write the result: a file path, or a folder ending in "/". Default: the server output folder (a temp folder unless --out-dir is set). | |
| fileName | No | Base name for the written file (extension follows the detected type). Default "decoded". |