.WAT File Extension
WebAssembly Text File
Developer | W3C |
Popularity |
2.0 | 1 Vote |
What is a WAT file?
A WAT file is a text file written in the WebAssembly Text Format (WAT), a human-readable representation of WebAssembly (WASM) in a syntax similar to the .LISP programming language and based on S-expressions. The WAT format allows developers to write, view, and debug WebAssembly code before compiling it into the binary WebAssembly (.WASM) format, which runs in environments that support WASM, typically in web browsers.
More Information
After compiling WAT files to WASM with a WebAssembly compiler, developers typically deploy them to run in web browsers, such as Google Chrome, Mozilla Firefox, Microsoft Edge, and Apple Safari, for games, media editing tools, data simulations, and more. WASM files may also run on server-side platforms like Node.js.
NOTE: The World Wide Web Consortium (W3C) WebAssembly Community Group develops WAT as part of the WebAssembly (WASM) project (beginning in 2015). The group includes major contributors from Mozilla, Google, Microsoft, and Apple and independent developers.
How to open a WAT file
You can open WAT files with various source code editors, including Microsoft Visual Studio Code and Brackets.
Since WAT files are saved in plain text, you can also open and edit WAT files with a basic text editor, such as Microsoft Notepad or Apple TextEdit. However, text editors do not offer the same helpful editing features that source code editors provide.
How to convert a WAT file
You can compile WAT files to WASM files with various WebAssembly compilers, including the wat2wasm command-line tool available with WABT (The WebAssembly Binary Toolkit).