.WASM

File WASM

WebAssembly Binary File
Fai una domanda
RISPOSTA RAPIDA

Un file .wasm contiene un modulo WebAssembly compilato: un bytecode binario portatile prodotto da linguaggi come C, C++ o Rust ed eseguito a velocità quasi nativa. La maggior parte dei file .wasm viene caricata da una pagina web ed eseguita dal browser invece di essere aperta direttamente, quindi qualsiasi browser moderno (Chrome, Firefox, Edge, Safari) può eseguirli. Per ispezionarne uno, è possibile disassemblarlo in testo leggibile con lo strumento wasm2wat del WebAssembly Binary Toolkit (WABT), oppure eseguirlo al di fuori del browser con un runtime come Wasmtime o Wasmer.

Sviluppatore: W3C WebAssembly Working Group (originally Mozilla, Google, Microsoft, Apple) Categoria: File di sviluppo Standard aperto MIME: application/wasm
SI APRE SU Windows macOS Linux Web
Correlati: .DO · .MD · .HEX · .XSD

In questa pagina

19k+ estensioni indicizzate
Ultima revisione Aug 28, 2026

Non sei sicuro di cosa sia il tuo file?

Trascina qualsiasi file nel nostro identificatore - leggiamo solo i primi byte per dare un nome al formato.

Identifica un file

Che cos'è il formato di file WASM?

Un file .wasm è un modulo WebAssembly compilato: un bytecode binario portatile per una macchina virtuale basata su stack. Gli sviluppatori scrivono codice in C, C++, Rust, Go o altri linguaggi supportati e lo compilano in .wasm affinché venga eseguito a una velocità prossima a quella nativa. Sul web, il modulo viene eseguito insieme a JavaScript; il browser lo recupera e lo esegue in una sandbox senza accesso diretto al sistema.

WebAssembly è uno standard aperto del W3C WebAssembly Working Group, stabile per la prima volta a marzo 2017 e raccomandazione W3C dal dicembre 2019. Ogni modulo inizia con un'intestazione di 8 byte 00 61 73 6D 01 00 00 00 (la stringa \0asm più un campo versione), seguita da sezioni numerate per tipi, importazioni, funzioni, memoria, esportazioni e il codice. La controparte testuale leggibile è il formato .wat.

Sicurezza e incolumità

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

Dettagli del formato

in sintesi
NOME COMPLETOWebAssembly Binary Fileanche noto come Wasm, WebAssembly module
SVILUPPATOREW3C WebAssembly Working Group (originally Mozilla, Google, Microsoft, Apple)dal 2017
TIPO MIMEapplication/wasm
TIPOBinary bytecode / compiled module
STANDARDAperto · royalty-free
Questa estensione è usata anche da…
  • 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 · FIRMA DEL FILE
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).

Programmi che aprono file WASM

Windows6 apps
Mozilla Firefox Open-source Runs .wasm served by a page and shows the disassembled module in the Debugger panel.
Google Chrome Gratuito Loads and executes .wasm modules automatically when a web page instantiates them; DevTools can disassemble and debug them.
Microsoft Edge Gratuito 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 Gratuito Instantiates .wasm from pages and disassembles them in DevTools.
Apple Safari Integrato 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 Gratuito 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 Gratuito Upload or paste a module to view its disassembly and section layout in the browser.

Dettagli tecnici

specifiche approfondite
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
Rilasciato2017
Ultima versioneWebAssembly 3.0 (2025); binary version field 0x01
Standard apertoSì · royalty-free
Specificawebassembly.github.io

Conversioni WASM

Domande e risposte della community

chiesto dagli utenti
Fai una domanda veloce
Ottieni aiuto da persone che lavorano con i file WASM. Sii specifico - includi il tuo sistema e la versione del software.
Nessun account necessario · risposte solitamente entro un giorno

Ancora nessuna domanda - sii il primo a chiedere informazioni sui file WASM.

Domande frequenti

Come apro un file WASM?
Sul web raramente lo si apre manualmente; una pagina lo carica e il browser lo esegue. Per leggerne uno, disassemblalo in testo con wasm2wat file.wasm da WABT, oppure eseguilo fuori dal browser con Wasmtime o Wasmer.
Posso modificare un file WASM?
Non direttamente in modo utile, poiché è binario. Convertilo nel formato di testo .wat con wasm2wat, modificalo e poi riassemblalo con wat2wasm. Per modifiche reali, normalmente si modifica il sorgente originale C, C++ o Rust e si ricompila.
Qual è la differenza tra .wasm e .wat?
.wasm è il binario compatto eseguito da una macchina; .wat è l'equivalente testo leggibile dall'uomo (WebAssembly Text Format). Possono essere convertiti l'uno nell'altro senza perdite con WABT.
Perché il mio browser scarica un file .wasm invece di eseguirlo?
Il server deve inviare il file .wasm con il tipo MIME application/wasm. Se viene servito come tipo generico o di testo, il browser potrebbe scaricarlo o rifiutarsi di compilarlo in streaming. Correggi il content-type del server.
Un file WASM è sicuro da eseguire?
In un browser viene eseguito in una sandbox e non può toccare i tuoi file da solo. Un runtime autonomo può concedergli più accessi tramite WASI, quindi esegui solo moduli provenienti da fonti affidabili.
Quali programmi creano file WASM?
Compilatori e toolchain come Emscripten (C/C++), il target Rust wasm32 con wasm-pack, TinyGo/Go e Clang/LLVM producono output .wasm.

Riferimenti

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

Continua a esplorare

nel database

Migliori estensioni della settimana

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

Estensioni correlate

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

Strumenti file gratuiti

Un identificatore di file e convertitore di immagini nel browser - tutto viene eseguito sul tuo dispositivo.

Apri la cassetta degli attrezzi

Sfoglia le estensioni dei file A-Z