.WASM

WASM-bestand

WebAssembly Binary File
Stel een vraag
SNEL ANTWOORD

Een .wasm-bestand bevat een gecompileerde WebAssembly-module: draagbare binaire bytecode geproduceerd uit talen zoals C, C++ of Rust en uitgevoerd op bijna-native snelheid. De meeste .wasm-bestanden worden geladen door een webpagina en uitgevoerd door de browser in plaats van direct geopend, dus elke moderne browser (Chrome, Firefox, Edge, Safari) voert ze uit. Om er een te inspecteren, kunt u deze deassembleren naar leesbare tekst met de wasm2wat-tool uit de WebAssembly Binary Toolkit (WABT), of deze buiten de browser uitvoeren met een runtime zoals Wasmtime of Wasmer.

Ontwikkelaar: W3C WebAssembly Working Group (originally Mozilla, Google, Microsoft, Apple) Categorie: Ontwikkelaarsbestanden Open standaard MIME: application/wasm
OPENT OP Windows macOS Linux Web
Gerelateerd: .DO · .MD · .HEX · .XSD

Op deze pagina

19k+ extensies geïndexeerd
Laatst beoordeeld op Aug 28, 2026

Niet zeker wat uw bestand is?

Sleep een bestand naar onze identificatietool - we lezen alleen de eerste bytes om het formaat te benoemen.

Identificeer een bestand

Wat is het WASM-bestandsformaat?

Een .wasm-bestand is een gecompileerde WebAssembly-module: draagbare binaire bytecode voor een op een stack gebaseerde virtuele machine. Ontwikkelaars schrijven code in C, C++, Rust, Go of een andere ondersteunde taal en compileren deze naar .wasm zodat deze op bijna-native snelheid draait. Op het web draait de module naast JavaScript; de browser haalt deze op en voert deze uit in een sandbox zonder directe toegang tot uw systeem.

WebAssembly is een open standaard van de W3C WebAssembly Working Group, voor het eerst stabiel in maart 2017 en een W3C-aanbeveling sinds december 2019. Elke module begint met de 8-byte header 00 61 73 6D 01 00 00 00 (de string \0asm plus een versieveld), gevolgd door genummerde secties voor types, imports, functies, geheugen, exports en de code. De leesbare tekstuele tegenhanger is het .wat-formaat.

Beveiliging & veiligheid

RISICO: 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.

Formaatdetails

in een notendop
VOLLEDIGE NAAMWebAssembly Binary Fileook bekend als Wasm, WebAssembly module
ONTWIKKELAARW3C WebAssembly Working Group (originally Mozilla, Google, Microsoft, Apple)sinds 2017
MIME-TYPEapplication/wasm
TYPEBinary bytecode / compiled module
STANDAARDOpen · royaltyvrij
GERELATEERD.do.md.hex.xsd
Deze extensie wordt ook gebruikt door…
  • 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.
MAGIC BYTES · BESTANDSSIGNATUUR
OFFSET
0001020304050607
HEX
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).

Programma's die WASM-bestanden openen

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

Technische details

diepe specificaties
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
Uitgebracht2017
Laatste versieWebAssembly 3.0 (2025); binary version field 0x01
Open standaardJa · royaltyvrij
Specificatiewebassembly.github.io

WASM conversies

Community V&A

gevraagd door gebruikers
Stel een korte vraag
Krijg hulp van mensen die met WASM-bestanden werken. Wees specifiek - vermeld uw systeem en softwareversie.
Geen account nodig · antwoorden meestal binnen een dag

Nog geen vragen - wees de eerste om iets te vragen over WASM-bestanden.

Veelgestelde vragen

Hoe open ik een WASM-bestand?
Op het web opent u het zelden handmatig; een pagina laadt het en de browser voert het uit. Om er een te lezen, deassembleert u het naar tekst met wasm2wat file.wasm van WABT, of voert u het buiten een browser uit met Wasmtime of Wasmer.
Kan ik een WASM-bestand bewerken?
Niet direct op een nuttige manier, aangezien het binair is. Converteer het naar het .wat-tekstformaat met wasm2wat, bewerk dat, en zet het weer in elkaar met wat2wasm. Voor echte wijzigingen bewerkt u normaal gesproken de originele C, C++ of Rust-broncode en compileert u deze opnieuw.
Wat is het verschil tussen .wasm en .wat?
.wasm is het compacte binaire bestand dat een machine uitvoert; .wat is de equivalente menselijk leesbare tekst (WebAssembly Text Format). Ze kunnen zonder verlies heen en weer worden geconverteerd met WABT.
Waarom downloadt mijn browser een .wasm-bestand in plaats van het uit te voeren?
De server moet .wasm verzenden met het MIME-type application/wasm. Als het wordt geserveerd als een generiek of teksttype, kan de browser het downloaden of weigeren het via stream-compilatie uit te voeren. Pas het content-type van de server aan.
Is een WASM-bestand veilig om uit te voeren?
In een browser draait het in een sandbox en kan het niet uit zichzelf aan uw bestanden komen. Een zelfstandige runtime kan het meer toegang verlenen via WASI, dus voer alleen modules uit van bronnen die u vertrouwt.
Welke programma's maken WASM-bestanden?
Compilers en toolchains zoals Emscripten (C/C++), de Rust wasm32 target met wasm-pack, TinyGo/Go en Clang/LLVM produceren .wasm-output.

Referenties

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

Blijf ontdekken

door de database

Populaire extensies deze week

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

Gerelateerde extensies

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

Gratis bestandstools

Een bestandsidentificatie en afbeeldingsconverter in de browser - alles draait op uw eigen apparaat.

Open de gereedschapskist

Blader door bestandsextensies A-Z