Base64ファイルをデコード
Base64文字列を貼り付けて元のファイルにデコード。画像、PDF、ZIPなど、あらゆる形式に対応。
100%クライアントサイド — データがデバイスから離れることはありません
Base64文字列を貼り付けて(data: プレフィックスあり/なし)、ファイルとしてダウンロードします。MIMEタイプはデータURIから自動検出されます。
コード例
プロジェクトにすぐに使えるコードスニペットです。
Node.js
import { writeFileSync } from "fs";
function saveBase64ToFile(b64String, outputPath) {
const clean = b64String.includes(",") ? b64String.split(",")[1] : b64String;
const buffer = Buffer.from(clean, "base64");
writeFileSync(outputPath, buffer);
}よくある質問
以下を検索するか、よくある質問をご覧ください。
入力エリアにBase64文字列を貼り付けてください。データURIスキームが含まれている場合、ファイルタイプが自動的に検出されます。その後、デコードされたファイルを直接ダウンロードできます。
有効なBase64文字列であれば、どのようなファイルにもデコードできます。画像、文書(PDF、DOCX)、音声、動画、アーカイブ(ZIP、TAR)などが含まれます。
Related Tools
Base64 Converter
Encode text to Base64 or decode Base64 to text — all in one tool
File to Base64
Convert any file (PDF, image, audio, doc) to a Base64 string instantly in your browser
Base64 to PDF Converter
Convert Base64 strings directly into downloadable PDF files with instant preview
Base64 to Image
Decode Base64 strings into images instantly. Live preview your image and download the raw file
Base64 Analyzer
Analyze Base64 strings to determine their validity, character set, padding, length, and decoded data type