How to obfuscate JavaScript
- Paste code in Original Code, import a project, or load the sample.
- Select a preset. Start with Default or Low, then add options only where needed.
- Validate the input and click Obfuscate code. A failed transformation leaves the existing result available and reports the error.
- Test the result in your application, including asynchronous behavior, global APIs and every target browser.
- Copy or download JavaScript, an HTML harness, or a project backup. A source map, when supported by the selected configuration, is exported separately.
Projects and privacy
Code transformations run in your browser. Saved projects and preferences use this browser's local storage. They are not shared between browsers or devices. Storage can be unavailable, full or cleared; export a JSON project backup for important work. Project backups can include source code and settings, so store and share them carefully.
Use Ctrl+S (Command+S on macOS) to save. Auto-save persists edits when enabled. Creating or switching projects keeps source and result associated with the correct project.
What is a JavaScript obfuscator?
A JavaScript obfuscator rewrites working code into an equivalent version that is harder for people to read. It renames identifiers, encodes strings and can restructure control flow, while aiming to keep the same behavior. Minification, by contrast, primarily reduces code size. Neither provides a guarantee against reverse engineering, AI analysis, copying or modification. Never embed API secrets or trusted authorization decisions in browser code.
Test real application behavior after every configuration change. Renaming public properties, changing global identifiers and intensive control flow transformations can affect integration contracts and performance.