Esta página ainda não foi traduzida para o português, por isso aparece em inglês.

JavaScript Obfuscator — Protect Your JS Code

Make your JavaScript hard to read, copy or modify — rename identifiers, move and encode strings, flatten control flow and add dead code — with presets that balance protection against size and speed.

Atualizado em
Protection

Seus dados nunca saem do seu computador. Todo o processamento acontece localmente no navegador.

Como usar: JavaScript Obfuscator

  1. Paste the JavaScript you want to protect.
  2. Pick a protection level — Light keeps the code fast and small, Strong makes it much harder to reverse.
  3. Click Obfuscate, test the result, then copy or download it.

What obfuscation does

Obfuscation transforms working code into an equivalent version that is very hard for people to read. This tool uses the open-source javascript-obfuscator engine: identifiers are renamed to meaningless hex names, strings are moved into an encoded array, and at higher levels the control flow is flattened into a state machine and dead code is injected.

Choosing a level

  • Light — renaming and string array; small overhead. Good for most front-end code.
  • Medium — adds control-flow flattening, string encoding and splitting. Code grows and runs slower.
  • Strong — adds dead code injection and more aggressive transforms. Use only on code that isn’t performance-critical.

Know the limits

Obfuscation slows reverse engineering down — it doesn’t make code secret. Anything that runs in a browser can eventually be analyzed, so never put API secrets, passwords or license keys in client-side code. Always test the obfuscated output, and keep your original source safe: obfuscation can’t be undone.

Private by design

Obfuscation runs entirely in your browser — your code is never uploaded, so it’s safe for proprietary projects.

Também pesquisado como: obfuscate javascript, js obfuscator, javascript code obfuscation, protect javascript code, obfuscate js online, javascript encrypt.

Ferramentas que combinam com: JavaScript Obfuscator

  • JavaScript Minifier — Paste JavaScript and get production-ready minified code from Terser — the same engine used by Vite, webpack and Rollup — with real before/after and gzipped sizes.
  • JavaScript Formatter — Unminify and pretty-print JavaScript, JSON or JSX with your preferred indentation and brace style — or strip whitespace and comments with a verified minifier.
  • AES Encrypt & Decrypt — Protect a note, secret or config value with a password using AES-256 — or decrypt text produced by openssl enc.
  • Hash Generator — Compute MD5 and SHA hashes of any text or file instantly, create HMAC signatures, and paste an expected checksum to verify a download.

Perguntas frequentes

Can obfuscated JavaScript be deobfuscated?
Partly. Tools can reformat and simplify it, but renamed identifiers and flattened logic make understanding it slow and costly. Treat obfuscation as a deterrent, not encryption.
Does obfuscation slow down my code?
Light protection adds little overhead. Control-flow flattening and dead code (Medium and Strong) can make code noticeably larger and slower — test before shipping.
Is obfuscation the same as minification?
No. Minification only removes whitespace and shortens names to reduce size; obfuscation deliberately makes code hard to understand and often makes it bigger.
Posso instalar o JavaScript Obfuscator como um aplicativo da web e usá-lo offline?
Sim. O JavaScript Obfuscator é um aplicativo da web instalável (PWA) — instalado a partir do seu navegador, não baixado de uma loja de aplicativos. Clique em “Instalar aplicativo” na parte superior desta página no Chrome ou no Edge (Windows, macOS, Linux, ChromeOS) ou, no Android, use “Compartilhar” → “Adicionar à tela inicial” no iPhone e no iPad, ou “Arquivo” → “Adicionar ao Dock” no Safari 17+ em um Mac. Em seguida, ela se abre em uma janela própria com seu próprio ícone e, como é executada inteiramente no seu navegador, continua funcionando offline. O Firefox no desktop não permite a instalação de aplicativos da web. Como funciona a instalação.

Ferramentas relacionadas