Renamed in this browser
Locals and parameters become short names. Comments go away. print, strings, and names after a dot or colon stay. This does not encrypt the script.
Help Us Improve
—
(—)
Obfuscate Lua source
Rename locals in pasted Lua, strip comments, and minify the source. Globals stay readable. Free, with no signup.
What this Lua obfuscator does
What changes in the paste
Lua obfuscator
Each local and parameter becomes a short name such as _0 or _1.
Comments removed
Line comments and long comments are dropped. Text inside strings stays.
Globals left in place
print, pairs, and other names that were not declared local stay readable.
Copy or download
Copy the result, download a .lua file, or open it in a new tab.
How to obfuscate Lua
Paste Lua
The sample is a local function with a comment. Replace it with your own source.
Read the result
Locals are short names. print and the quoted text are still there.
Copy it
Copy, download, or open the result. The page does not save it.
What this does not hide
Strings stay readable
Quoted text and long brackets are copied as written, including words that look like names.
A global function name stays
function greet() keeps greet, because other code may call it. local function greet is renamed.
Keep the paste under 100,000 characters
Longer source is refused so the page stays responsive.
When you want the paste harder to skim
A local helper
Shorten the local names before you paste the snippet somewhere public.
A comment-heavy sample
Drop the comments and the extra blank lines in one step.
A quick look at the difference
Compare the source and the result on this page. Nothing is uploaded.
What you get
No signup
Paste and copy. There is no account step.
Free
The result has no watermark.
Nothing is uploaded
Renaming runs in the browser.
What the renamer covers
Renamed
local names, function parameters, and for-loop names, each in its own block.
Left as written
Keywords, globals, table fields, method names, and strings.
Limit
100,000 characters. A string or long comment that never closes stops the page.
Sources & References
“In software development, obfuscation is the practice of creating source or machine code that is intentionally difficult for humans or computers to understand.”
Obfuscation makes code harder to read: This page shortens local names and removes comments. It does not make the script impossible to read. en.wikipedia.org/wiki/Obfuscation_(software)
“Any variable name is assumed to be global unless explicitly declared as a local (see §3.3.7). Local variables are lexically scoped: local variables can be freely accessed by functions defined inside their scope (see §3.5).”
Lua treats undeclared names as global: Only names declared local are renamed. A global such as print stays, so the script can still call it. lua.org/manual/5.4/manual.html#3.2