We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Online Lua Compiler – Interpreter, Playground and IDE

Edit, run, and debug Lua code online for free! Powered by Lua and WebAssembly.

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.

How to use the online Lua interpreter

  1. Edit main.lua, or add another .lua module and load it with require.
  2. Press Run to execute the program in the browser-based Lua engine.
  3. Inspect printed output or errors, change the code, and run it again.

What this Lua playground supports

  • Lua in the browser. Run Lua through a WebAssembly-powered engine.
  • Local modules. Connect up to five .lua files with require.
  • Printed output and errors. Read results directly beneath the editor.
  • Local autosave. Keep your Lua files in this browser between visits.

Online Lua interpreter FAQ

Yes. You can edit and run Lua without installing anything or creating an account. An account is only needed to create a share link.