All tools
TinyTools
Free tool
🔒 JavaScript Obfuscator
Obfuscation Options
Rename variables
Encode strings
Inject dead code
Hex number literals
Shuffle object keys
Control flow flatten
Self-defending
Minify output
Intensity:
Low
Medium
High
📝 Input JavaScript
Sample
// Example: user authentication function validateUser(username, password) { const MIN_LENGTH = 8; const SPECIAL_CHARS = /[!@#$%^&*]/; if (username.length < 3) { return { valid: false, error: "Username too short" }; } if (password.length < MIN_LENGTH) { return { valid: false, error: "Password must be at least 8 characters" }; } if (!SPECIAL_CHARS.test(password)) { return { valid: false, error: "Password needs a special character" }; } const hash = btoa(password + ":" + username); return { valid: true, token: hash }; } const users = ["admin", "user1", "guest"]; const result = validateUser("admin", "P@ssw0rd!"); console.log(result);
🔒 Obfuscated Output
Copy
Input:
0
chars
Output:
0
chars
Ratio:
-
🔒 Obfuscate
Clear
Download