Documentation

Guides for protecting production JavaScript

Reference guides for release workflows, command-line usage, cross-file protections, and the desktop app.

Inside The Docs

Practical guides, not placeholder pages.

How-to guides Start with release sequencing and command-line usage, then move into feature-specific references.
Advanced protection Browse cross-file controls like Replace Globals and Protect Members when a build spans multiple scripts.

Build and Release Workflows

  • Teams shipping repeatable releases
  • Post-build obfuscation and embedded JavaScript projects

JavaScript Obfuscator fits best after your JavaScript assets have already been generated. Use the online tool for quick validation, then move into the desktop project and command-line workflow when you want a repeatable release process.

Typical release sequence

  1. Build or bundle your application so the JavaScript files you intend to ship are ready.
  2. Open those generated files, or the folders that contain them, in the desktop project.
  3. Configure obfuscation, exclusion, and cross-file options based on what your application exposes publicly.
  4. Test the protected output in the same environments where you normally validate a release.
  5. Generate the command line from the desktop project when you want to repeat the same protection settings automatically.

Good fits for the desktop workflow

  • Applications that ship many JavaScript files together and need consistent renaming across them.
  • Projects that embed JavaScript inside HTML, PHP, ASP, ASPX, JSP, or similar mixed files.
  • Release processes that need the same protection settings reused across many builds.

How to protect public or shared names safely

If your application depends on names that must stay stable, use the Variable Exclusion List and the cross-file options such as Replace Globals and Protect Members. This is the safest way to keep integrations and shared identifiers compatible while still increasing protection.

Automation guidance

The command-line workflow is generated from the desktop project, which means your release automation can reuse the same protection settings instead of recreating them by hand. This is the recommended path for CI jobs, scripted release steps, or any environment where consistency matters more than one-off experimentation.

Start from Use Command Line when you are ready to turn a working desktop project into a repeatable build step.

Practical rule of thumb: obfuscate the code you actually ship, not the original authoring sources that will still be transformed later by other build steps.