Lua Formatter

Your workspaceProcessed on your device

StyLua 2.6.0 runs on this device.

A few things to know.

Uses StyLua 2.6.0 with output syntax-tree verification for standard Lua 5.1, 5.2, 5.3 and 5.4. The browser worker accepts up to 125,000 characters and treats the program as source text.

  1. Paste a complete Lua file or load the example with a table and multiline string.
  2. Choose the Lua version used by your project and set tabs, two spaces or four spaces.
  3. Select Format Lua. Inspect the parsed output or follow the reported error, then copy or download the Lua file.