Lua Playground
Run Lua code in your browser — real Lua via WebAssembly, instant output, no server or signup. Great for Neovim, Roblox and game scripting practice. Free.
About Lua Playground
Run real Lua 5.4 in the browser via wasmoon — the actual Lua VM compiled to WebAssembly, so tables, metatables, coroutines and the standard library all behave like they do in Neovim configs, Roblox scripts and game engines. Write code or pick a sample, hit Run, and print() output appears below.
The wasm engine is tiny compared to most language runtimes and everything executes locally — no server round-trips, nothing uploaded. Useful for testing a Neovim config snippet, a Roblox function, or learning Lua's table-based style without installing anything.
How to use Lua Playground
- Write Lua in the editor or pick a sample.
- Hit Run — the WASM engine loads in a moment.
- print() output shows below the editor; runtime errors surface inline.
Frequently asked questions
Which Lua version runs?
Lua 5.4 via wasmoon — the real VM compiled to WebAssembly, with the standard library (string, table, math, coroutine, os, io subset).
Is my code uploaded?
No — execution is fully local in your browser tab.
Does it support Roblox/Neovim APIs?
No — this is vanilla Lua, so game- or editor-specific APIs (game, workspace, vim.*) aren't available. It's ideal for language-level practice and pure-Lua logic.