Lua Beautifier
Beautify, format, and clean up your Lua code instantly in a secure, client-side environment.
Formatted output will appear here...About Lua Beautifier
Lua is a lightweight scripting language widely used in game development (Roblox, World of Warcraft addons, Love2D), embedded systems, and configuration files for tools like Nginx and Redis. When Lua scripts are minified for distribution or written without consistent formatting, they become difficult to read and debug.
Our Lua Beautifier restructures messy or compressed Lua code with clean indentation, proper block alignment, and readable spacing. All formatting happens locally in your browser — your code never leaves your machine. Use it to clean up game scripts, debug addon code, or standardize formatting across your Lua projects.
How to Use
Paste Your Lua Code
Copy your minified or messy Lua code and paste it into the input editor on the left.
Beautify or Minify
Click "Beautify" to format with proper indentation, or "Minify" to compress for production use.
Copy the Result
Use the copy button to grab your formatted Lua, or download it as a .lua file.