Use Lua Formatter
Format Lua source using the Lua WASM formatter. Start with the sample, select the options and run the tool. Copy or download the result after reviewing it.
Behavior and limits
Format Lua source using the Lua WASM formatter. Source is parsed and formatted locally without executing it. Formatting is not compilation, linting or dependency resolution.
Example input
local function add(a,b) return a+b end
print(add(1,2))
Expected behavior for the example
Formats the Lua sample consistently and reports parser errors when supported by its formatter.
Check important output in the application that will consume it. Use the tool directory to find related formats and tasks.
Frequently asked questions
How does Lua Formatter handle my input?
Format Lua source using the Lua WASM formatter. Source is parsed and formatted locally without executing it. Formatting is not compilation, linting or dependency resolution.
Is my input uploaded or saved automatically?
Processing runs locally in this browser. Input and results are not saved automatically. Downloads happen only when you choose them. The static preview blocks scripts and external resources when one is available.