Paste the table text you want to clean up.
Free, privacy-first
Roblox Lua Table Formatter
Format messy Roblox Lua tables into cleaner, more readable output before you paste them back into Studio.
Table input
Formatted output
The formatter is best-effort by design, so it is fast and useful for common table cleanup while still being honest about malformed input.
Good use cases
A good fit when a Lua table is technically readable by the engine but unpleasant to review as a human.
- Clean up one-line config tables.
- Reformat reward, inventory, or UI data blocks before code review.
- Improve copy-paste readability for Studio snippets.
How to review the output
The output is intended to be easier to read, not to replace a real Lua parser or a Studio test run.
- Brace-balance warnings matter because they usually signal malformed input, not just formatting noise.
- If the output looks cleaner and the warnings are quiet, it is usually ready for copy-paste cleanup work.
- If the table uses advanced Lua syntax, review the formatted output manually before trusting it, or switch to the Luau formatter for broader script cleanup.
Paste the Lua table, choose an indent size, and review the best-effort output before copying it back into Studio.
Set the indent size you prefer for nested output.
Run the formatter and review any warnings about malformed input.
Copy the cleaned table once the structure looks right.
Typical formatting jobs
These examples reflect common Roblox Studio cleanup work.
Reformat a compact config table
Turn a one-line table into a readable multi-line block.
Sample inputs
- Input
- {theme={primary="#E2231A",secondary="#111827"},enabled=true}
- Indent
- 4 spaces
Result: Useful for theme configs, feature flags, and small module settings.
Clean a reward table before review
Make nested reward definitions easier to scan before shipping.
Sample inputs
- Input
- {daily={coins=50,boost="speed"},weekly={coins=500,crate="epic"}}
- Indent
- 2 spaces
Result: Helpful when nested values are dense but structurally simple.