Lua Obfuscator — HTML (single file)
Simple, client-side obfuscation tools for Lua source.
Input Lua code
-- paste your Lua code here -- example: local a = "string" local b = 123 print(a..b) -- provided sample from user: do local 1="string" do local 2="byte.string" do local 3="gsub" do local 4="string.char" if 1 then if 2 then if 3 then if 4 then do local 1=[["551829272"]] local 2=[["1.4471"]] if 1 then 3='2_2(dT44)' end end end end
Remove comments (-- line and --[[ ... ]])
Rename local variables (simple, uses detected local declarations)
Convert string literals to string.char(...) expressions
Wrap entire output as a string.char(...) + loadstring(...) (harder-to-read wrapper)
Minify whitespace (remove blank lines / trim)
Obfuscate
Copy Output
Download .lua
Not perfect — use tests. Does not evaluate code client-side.
Output
Preview of obfuscated Lua (copy or download to use).