Lua Minifier
Compress your Lua code by removing whitespace, comments, and formatting instantly.
Minified output will appear here...About Lua Minifier
Lua scripts used in game engines, embedded systems, and configuration files are often written with comments, generous spacing, and indentation for readability. When deploying Lua scripts to production — especially in resource-constrained environments like game mods or IoT devices — reducing file size matters.
Our Lua Minifier strips all comments (both line and block), collapses whitespace, and compacts your Lua code into the smallest valid form. All processing runs locally in your browser — your code never leaves your machine. Use it to optimize Roblox scripts, compress game mods, or reduce addon file sizes.
How to Use
Paste Your Lua Code
Copy your formatted Lua script and paste it into the input editor on the left.
Minify
Click "Minify" to strip all comments and whitespace from your Lua code.
Copy the Result
Review the size savings, then copy the minified Lua or download it as a .lua file.