Back to Tools
Utilities

Lua Beautifier

Beautify Lua or Luau online. Format functions, loops, and blocks — nothing is executed or uploaded.

Lua75 chars
Beautified Lua85 chars

About Lua Beautifier

Beautify Lua and most Luau snippets with indentation for functions, if/then, do/end, and repeat/until. This is a formatter, not an interpreter — code is never executed.

Common Use Cases

  • Lua beautifier / lua formatter online
  • Roblox Luau cleanup
  • Game mod scripts
  • Review before paste

Tips

  • Paste Lua or Luau into the input
  • Review unusual macros by hand
  • No code is executed or uploaded

Frequently Asked Questions

Does this Lua beautifier support Luau?

Yes. Luau is a Lua dialect used in Roblox. The formatter indents functions, if/then, do/end, and repeat/until blocks the same way, so most Luau snippets format cleanly. Review generated output for unusual macros.

Is this a Lua formatter or a Lua interpreter?

It is a formatter only. Code is never executed. Use it to beautify Lua before review or paste. It will not run scripts or catch runtime errors.

How do I beautify Lua online?

Paste Lua into the input panel. The output indents after function, then, do, and else, and outdents on end, elseif, and until. Copy the result with Copy Output.

Does the Lua formatter upload my code?

No. Beautifying runs in your browser. Nothing is sent to a server.