Focus Editor
ctrl+j
Next Tab
ctrl+shift+j
Create File
Run Code
ctrl+enter
Login to Reset
Format Code
alt+enter
Edit the Lua modules above or write your own code, then press Run. A Lua engine compiled to WebAssembly executes the program in your browser.
Use the playground for syntax experiments, tables, functions, and small multi-file modules without installing Lua.
main.lua, or add another .lua module and load it with require. .lua files with require. Yes. You can edit and run Lua without installing anything or creating an account. An account is only needed to create a share link.
Yes. The playground uses a Lua engine compiled to WebAssembly and runs it inside a browser worker.
Yes. You can work with up to five .lua files. The playground preloads them so main.lua can load local modules with require.
No. This playground is intended for the built-in Lua language and local modules. It does not include a LuaRocks package installer.