JS Unminify
Reformat minified JavaScript into indented, readable code.
About this tool
JS Unminify uses Terser's formatter to turn a compressed script into properly indented code with line breaks and braces restored, keeping comments. It is the quickest way to read a third-party bundle, review a tracking script or begin analysing an obfuscated sample, with everything happening in your browser.
How to use it — quick steps
- 01
Enter the minified javascript
Type or paste the minified javascript in the field above. Nothing is uploaded.
- 02
Adjust the options
Pick the settings that fit your case; the defaults work for most people. Changes apply instantly.
- 03
Press "Unminify JavaScript"
Press "Unminify JavaScript" or Ctrl + Enter. The result appears instantly below the form.
Key features of this tool
Nothing leaves your browser
The processing is plain JavaScript that runs on your device: the text you paste is never uploaded to our servers or to anyone else.
Instant results
Results appear the moment you press the button, even for long inputs, and every block has copy and download actions.
Works everywhere
No installation, no account and no limits: the tool works on desktop and mobile, in any modern browser, as often as you like.
Frequently asked questions
Does it restore variable names?
No. Mangled names like a, b, c cannot be recovered; only the structure, indentation and line breaks are restored.
Can I inspect obfuscated malware this way?
Formatting is the first step; the code is never executed by this tool, so it is safe to paste.
Are my files or data uploaded?
No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.