.WASM

WASM ファイル

WebAssembly Binary File
質問する
クイック回答

.wasm ファイルは、コンパイルされた WebAssembly モジュールを保持します。これは C、C++、Rust などの言語から生成されたポータブルなバイナリバイトコードであり、ネイティブに近い速度で実行されます。ほとんどの .wasm ファイルは、直接開くのではなく、ウェブページによって読み込まれブラウザで実行されるため、主要なブラウザ(Chrome、Firefox、Edge、Safari)であれば実行可能です。内容を調査するには、WebAssembly Binary Toolkit (WABT) の wasm2wat ツールを使用して読み取り可能なテキストに逆アセンブルするか、Wasmtime や Wasmer などのランタイムを使用してブラウザ外で実行します。

開発元: W3C WebAssembly Working Group (originally Mozilla, Google, Microsoft, Apple) カテゴリ: 開発用ファイル オープンスタンダード MIME: application/wasm
対応OS Windows macOS Linux Web
関連: .DO · .MD · .HEX · .XSD

このページの内容

19k+ 個の拡張子を索引済み
最終確認日:Aug 28, 2026

ファイルの種類がわかりませんか?

ファイルを識別ツールにドロップしてください。最初の数バイトを読み取って形式を特定します。

ファイルを識別する

WASM ファイル形式とは?

.wasm ファイルは、スタックベースの仮想マシン用のポータブルなバイナリバイトコードである、コンパイル済み WebAssembly モジュールです。開発者は C、C++、Rust、Go、またはその他のサポートされている言語でコードを記述し、ネイティブに近い速度で動作するように .wasm にコンパイルします。ウェブ上では、このモジュールは JavaScript と並行して動作します。ブラウザはこれを取得し、システムへの直接アクセス権を持たないサンドボックス内で実行します。

WebAssembly は W3C WebAssembly Working Group によるオープン標準であり、2017年3月に最初の安定版がリリースされ、2019年12月からは W3C 勧告となっています。すべてのモジュールは 8 バイトのヘッダー 00 61 73 6D 01 00 00 00(文字列 \0asm とバージョンフィールド)で始まり、その後に型、インポート、関数、メモリ、エクスポート、およびコードの番号付きセクションが続きます。読み取り可能なテキスト形式の対応物は .wat 形式です。

セキュリティと安全性

リスク: MEDIUM

WebAssembly runs inside a sandbox with no direct access to the file system, network, or DOM unless the host grants it, so a module cannot escape on its own. The risk comes from what the surrounding page or runtime allows: malicious sites have used Wasm for in-browser cryptomining and for obfuscating logic that is harder to read than JavaScript. Only run standalone .wasm files from sources you trust, since a WASI runtime can be given file and network permissions.

形式の詳細

概要
正式名称WebAssembly Binary File別名 Wasm, WebAssembly module
開発元W3C WebAssembly Working Group (originally Mozilla, Google, Microsoft, Apple)登場時期 2017
MIME タイプapplication/wasm
タイプBinary bytecode / compiled module
標準規格オープン・ロイヤリティフリー
この拡張子は以下でも使用されています…
  • Wavefront / general 3D scene data - A few older or niche 3D and simulation tools have used .wasm for scene or mesh data, unrelated to WebAssembly.
  • Application-specific save or cache files - Some standalone programs have reused the .wasm extension for internal data files; these are not WebAssembly modules and lack the \0asm header.
マジックバイト ・ ファイルシグネチャ
オフセット
0001020304050607
16進数
0061736D01000000
ASCII
·asm····
First 4 bytes are the magic number 00 61 73 6D ("\0asm"). The next 4 bytes are the little-endian version field, currently 01 00 00 00 (version 1).

WASM ファイルを開くプログラム

Windows6 apps
Mozilla Firefox オープンソース Runs .wasm served by a page and shows the disassembled module in the Debugger panel.
Google Chrome 無料 Loads and executes .wasm modules automatically when a web page instantiates them; DevTools can disassemble and debug them.
Microsoft Edge 無料 Executes WebAssembly on any page and inspects modules through its DevTools.
WABT (wasm2wat) オープンソース Run wasm2wat file.wasm -o file.wat to disassemble the binary into readable text; wasm-objdump prints section details.
Wasmtime オープンソース Execute a standalone module from the command line with wasmtime file.wasm.
Wasmer オープンソース Run or embed a .wasm module with wasmer run file.wasm, including WASI programs.
macOS4 apps
Google Chrome 無料 Instantiates .wasm from pages and disassembles them in DevTools.
Apple Safari 標準搭載 Runs WebAssembly modules loaded by web pages and lets you inspect them in Web Inspector.
WABT (wasm2wat) オープンソース Disassemble a binary to text with wasm2wat file.wasm; installable via Homebrew.
Wasmtime オープンソース Run a module directly with wasmtime file.wasm.
Linux5 apps
Mozilla Firefox オープンソース Runs WebAssembly on any page and shows it in the Debugger.
Google Chrome 無料 Executes .wasm served by a page; DevTools disassembles the module.
WABT (wasm2wat) オープンソース Disassemble with wasm2wat file.wasm or dump sections with wasm-objdump -x file.wasm.
Wasmtime オープンソース Execute standalone modules with wasmtime file.wasm.
WasmEdge オープンソース Run edge and server modules with wasmedge file.wasm.
Web1 app
WebAssembly.org online tools / Wasm Explorer 無料 Upload or paste a module to view its disassembly and section layout in the browser.

技術的詳細

詳細仕様
EncodingBinary bytecode (stack-machine instructions)
Byte orderLittle-endian for multi-byte scalars; LEB128 for integers
ContainerModule = 8-byte header followed by a sequence of numbered sections
CompressionNone built in; commonly served with gzip or Brotli over HTTP
Typical sizeTens of KB to several MB depending on the compiled program
StructureHeader (magic + version) then sections: Type, Import, Function, Table, Memory, Global, Export, Start, Element, Code, Data, plus optional Custom sections (names, DWARF debug info).
IntegrityNo internal checksum; integrity handled by transport (HTTPS) or Subresource Integrity on the web
PlatformsWindows, macOS, Linux, Android, iOS, Web
Initial Release FullMarch 2017 (MVP / binary format version 1)
NotesText-format counterpart is the .wat file. Source languages such as C, C++, Rust and Go compile to .wasm. Runs sandboxed in browsers and in standalone runtimes (Wasmtime, Wasmer, WasmEdge, WAMR). WASI extends it to server and CLI use.
Instruction SetVirtual stack machine, structured control flow, 32/64-bit integers and floats, linear memory
Debug InfoOptional DWARF data and a name section carried in Custom sections
リリース日2017
最新バージョンWebAssembly 3.0 (2025); binary version field 0x01
オープンスタンダードはい · ロイヤリティフリー
仕様書webassembly.github.io

WASM の変換

コミュニティ Q&A

ユーザーからの質問
質問する
WASM ファイルを扱うユーザーからヘルプを得られます。OSやソフトウェアのバージョンなど、具体的に記載してください。
アカウント不要 ・ 通常1日以内に回答されます

まだ質問はありません。WASM ファイルについて最初の質問をしてみましょう。

よくある質問

WASM ファイルを開くにはどうすればよいですか?
ウェブ上では手動で開くことはほとんどありません。ページが読み込み、ブラウザが実行します。内容を読むには、WABT の wasm2wat file.wasm を使用してテキストに逆アセンブルするか、Wasmtime や Wasmer を使用してブラウザ外で実行します。
WASM ファイルを編集できますか?
バイナリ形式であるため、直接編集することは実用的ではありません。wasm2wat で .wat テキスト形式に変換して編集し、wat2wasm で再アセンブルしてください。本格的な変更を行う場合は、通常、元の C、C++、Rust などのソースを編集して再コンパイルします。
.wasm と .wat の違いは何ですか?
.wasm はマシンが実行するコンパクトなバイナリです。.wat はそれに対応する人間が読めるテキスト形式(WebAssembly Text Format)です。これらは WABT を使用してロスレスで相互変換できます。
ブラウザが .wasm ファイルを実行せずにダウンロードしてしまうのはなぜですか?
サーバーは .wasm を application/wasm という MIME タイプで送信する必要があります。汎用的なタイプやテキストタイプとして配信されると、ブラウザはダウンロードしたり、ストリームコンパイルを拒否したりすることがあります。サーバーのコンテンツタイプ設定を修正してください。
WASM ファイルを実行しても安全ですか?
ブラウザ内ではサンドボックス化されて実行されるため、それ自体でファイルに触れることはできません。スタンドアロンランタイムでは WASI を通じてより多くのアクセス権を付与できるため、信頼できるソースからのモジュールのみを実行してください。
どのようなプログラムが WASM ファイルを作成しますか?
Emscripten (C/C++)、wasm-pack を使用した Rust の wasm32 ターゲット、TinyGo/Go、Clang/LLVM などのコンパイラやツールチェーンが .wasm 出力を生成します。

参考文献

1WebAssembly - Wikipediaen.wikipedia.org
2WebAssembly Core Specification - Binary Format (W3C)webassembly.github.io

さらに探索

データベース全体から

今週のトップ拡張子

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.JPGJPEG Image
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.RPMSGRestricted Permission Message
7.PARTPartial Download File
8.BINCD/DVD Disc Image (BIN/CUE)
9.DBSQLite Database File
10.JSONJavaScript Object Notation file

関連する拡張子

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

無料ファイルツール

ブラウザで動作するファイル識別および画像変換ツール。すべてお使いのデバイス上で実行されます。

ツールボックスを開く

ファイル拡張子を A-Z で閲覧