Game - Hub
Home
Games
Events
Tools
Ideas
Learn
Docs
Design
Play
☾
🔔
0
Notifications
Mark all read
No notifications
Donate
Support Game - Hub
Donate Robux
100 / 500 / 1,000 R$
Script Formatter
Paste messy Luau code and get it auto-formatted with proper indentation and spacing.
Format Code
Copy Formatted
Clear
Load Example
Input (Messy Code)
Output (Formatted)
Formatted code will appear here...
0
Lines
0
Indent Fixes
0
Spacing Fixes
0
Blank Lines Cleaned
What the formatter does
Fixes indentation using 4 spaces per nesting level
Adds indentation after function, if, for, while, repeat, and do blocks
Removes indentation on end, else, elseif, and until keywords
Adds spacing around operators (=, ==, ~=, +, -, *, /, .., etc.)
Normalizes line endings and removes excessive blank lines
Preserves string contents and comments
Copied to clipboard