{
  "slug": "base64-to-audio-file",
  "name": "gizza-ai/base64-to-audio-file",
  "version": "0.1.0",
  "title": "Base64 to Audio File — decode Base64 or a data: URI to audio — gizza.ai",
  "description": "Decode a Base64 string or data: URI back into an audio file in your browser. Auto-detects WAV, MP3, Ogg, FLAC, M4A, AAC, WebM, AIFF and MIDI.",
  "tags": [
    "base64 to audio",
    "base64 to mp3",
    "base64 to wav",
    "decode base64 audio",
    "base64 audio decoder",
    "data uri to audio",
    "base64 to audio file"
  ],
  "category": "audio",
  "urls": {
    "page": "https://gizza.ai/tools/base64-to-audio-file/",
    "markdown": "https://gizza.ai/tools/base64-to-audio-file/index.md",
    "descriptor": "https://gizza.ai/tools/base64-to-audio-file/tool.json",
    "deep_link_example": "https://gizza.ai/tools/base64-to-audio-file/?data=UklGRuwAAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YcgAAACAob%2FW%E2%80%A6&filename=audio&format=auto&strict=true"
  },
  "cli": "gizza tool base64-to-audio-file \"UklGRuwAAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YcgAAACAob/W…\"",
  "tool": {
    "description": "Decode a Base64 string — or a full data:audio/…;base64,… URI — back into a real, downloadable audio file with the right MIME type and extension. The container is sniffed from the decoded magic header (WAV, MP3 with or without an ID3 tag, Ogg, FLAC, MP4/M4A, ADTS AAC, WebM, AIFF, AMR, WMA/ASF, MIDI); set format to force one for headerless payloads, or 'bin' to save the raw bytes. Whitespace, line breaks, wrapping quotes, the URL-safe alphabet and missing padding are tolerated. Bytes are never re-encoded — use audio-convert to change codecs. Decodes up to 32 MiB, locally; nothing is uploaded.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "data": {
          "description": "The Base64-encoded audio, or a full `data:audio/…;base64,…` URI. Whitespace, line breaks, wrapping quotes, the URL-safe alphabet (-_) and missing = padding are all tolerated. Decodes to at most 32 MiB.",
          "type": "string"
        },
        "filename": {
          "default": "audio",
          "description": "Download name without the extension (default 'audio'); the extension follows the resolved format, e.g. audio.wav.",
          "type": "string"
        },
        "format": {
          "default": "auto",
          "description": "Container of the decoded bytes. 'auto' (default) sniffs it from the magic header; naming one forces that MIME type and extension for headerless payloads, and 'bin' saves the raw bytes.",
          "enum": [
            "auto",
            "mp3",
            "wav",
            "ogg",
            "flac",
            "m4a",
            "aac",
            "webm",
            "aiff",
            "amr",
            "wma",
            "midi",
            "bin"
          ],
          "type": "string"
        },
        "strict": {
          "default": true,
          "description": "When sniffing (format=auto), reject bytes that are not a recognized audio container instead of saving them as application/octet-stream. Default true.",
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ],
      "type": "object"
    }
  }
}