Lua Deobfuscator
Deobfuscate and beautify obfuscated Lua code online. Decode Luraph, Ironbrew, and PSU obfuscation patterns. Free, runs in your browser.
Input
Deobfuscated Output
What Is the Lua Deobfuscator?
The Lua Deobfuscator reverses common obfuscation patterns and beautifies Lua code. Paste obfuscated or minified Lua and get readable output for debugging and analysis. Lua is widely used in game scripting—especially Roblox, LÖVE, and embedded systems.
This tool runs entirely in your browser. No code is sent to any server. It handles common obfuscation techniques including string table lookups, hex/decimal escape decoding, variable name mangling, and whitespace restoration. Heavy bytecode obfuscators like Luraph and Ironbrew use custom VM layers that cannot be fully reversed in a browser tool, but this deobfuscator will make your code significantly more readable.
How to Use This Tool
Paste or Upload
Paste obfuscated or minified Lua code into the left panel, or upload a .lua or .txt file. Click Sample to load an example.
View Deobfuscated Output
The right panel shows cleaned and formatted Lua code. String escapes are decoded, indentation is restored, and variable names are normalized where possible.
Copy or Download
Use Copy or Download to save the result as a .lua file for further analysis or debugging.
Lua Deobfuscator Examples
Here is an example of deobfuscating Lua code that uses a string table lookup pattern—one of the most common Lua obfuscation techniques.
Example: String Table Lookup Obfuscation
Obfuscated input:
Deobfuscated output:
When the Lua Deobfuscator Helps
Lua is the scripting language for Roblox, World of Warcraft addons, nginx/OpenResty, Redis, and many game engines. Obfuscated Lua is common in: Roblox exploits and anti-cheat analysis, game mod analysis, embedded device firmware, and security research. Tools like Luraph and Ironbrew compile Lua to a custom bytecode VM—full reversal requires manual analysis. This tool handles the simpler obfuscation patterns automatically.
Frequently Asked Questions
Is my Lua code private?
Yes. All deobfuscation runs entirely in your browser. No code is sent to any server.
Can it reverse Luraph or Ironbrew obfuscation?
Luraph and Ironbrew compile Lua to a custom bytecode VM. Full reversal of these formats requires specialized tools and manual analysis. This tool handles simpler patterns like string table lookups, escape decoding, and formatting.
What obfuscation patterns does it handle?
It decodes hex and decimal string escapes (\65, \x41), resolves simple string table lookups, restores indentation for function/if/while/for/do blocks, and removes excessive whitespace and semicolons.
Can I use it for Roblox scripts?
Yes. Roblox uses Lua (and Luau, a Lua superset). This tool works on Lua and Luau scripts. PSU and similar Roblox obfuscators use patterns this tool can partially decode.
Is it legal to deobfuscate Lua?
Use for debugging your own code, security research, or with permission. Check licenses and terms for third-party code.