Online Tool Store Online Tool Store

Lua Beautifier

Paste minified or poorly indented Lua and get cleanly formatted, consistently indented code back. Runs entirely in your browser.

🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.

Editable
Ready

Runs locally in your browser. Re-indents Lua blocks and tables while preserving strings, comments, and long-bracket blocks. This is a heuristic formatter, so review unusual syntax.

How the Lua Beautifier works

  1. Paste minified or inconsistently indented Lua code.
  2. The formatter re-indents every block and adds consistent spacing.
  3. Copy the formatted result back into your editor.

FAQ

Is my code uploaded anywhere?

No. Formatting happens entirely in your browser, so your Lua code is never sent to a server.

Does it change how my code behaves?

Formatting changes whitespace, indentation, and line breaks. The logic, variable names, and code structure are preserved, but you should still review unusual syntax.

What indentation styles are supported?

You can choose two spaces, four spaces, or tabs from the indentation menu.

Can I format a large Lua script?

Yes. There is no upload or account requirement, and the work happens locally in your browser.

Does this work for Roblox or Garry's Mod Lua scripts?

Yes. Roblox, Garry's Mod, and World of Warcraft addon scripts all use standard Lua syntax, so this formatter re-indents them the same as any other Lua file.

Does it check my Lua code for syntax errors?

It is a formatter, not a full parser. It will show an error if brackets or quotes are unbalanced, but it does not validate complete Lua syntax the way a linter would.

How we compare

FeatureOnline Tool StoreVS Code extensionOther online formatters
No file upload - runs in your browser Often server-side
No install or editor needed Requires VS Code
Free, no sign-up Some require an account

A VS Code extension is useful for formatting inside an editor, while Lua Beautifier is designed for quick browser-based formatting with nothing uploaded.

Explore related tools

Embed this tool

Paste this on your own site — it stays free, and every file still stays in your visitor's browser, not yours or ours.