JS

Unminify JS

Reformat minified JavaScript back into readable, indented code.

js-minifier.tool
0 chars
Result will appear here
Nothing you paste here is ever sent to a server - processing happens locally in your browser.
Overview

What is a unminify js?

This tool reformats minified or compressed JavaScript back into readable, properly indented code - adding line breaks, spacing, and consistent indentation so you can actually follow the logic. It won't recover original variable names (those are gone once minified), but the structure becomes readable again.

Quick start

How to use this tool

  1. 1Paste minified JavaScript, or upload a .js file.
  2. 2Click Run to reformat it with proper indentation and line breaks.
  3. 3Copy the result or download it as a .js file.
Where it helps

Common use cases

Reading a third-party library's minified source to understand what it does
Debugging a production error by making a minified stack trace's surrounding code readable
Reviewing minified code before deciding whether to trust or include it
Reformatting code that lost its structure after being copy-pasted from somewhere
Good to know

Frequently asked questions

Will this restore the original variable names?

No - minification typically renames variables to short names permanently; that information is gone unless a source map was published alongside the minified file. This tool restores structure and readability, not the original naming.

Does it work on any JavaScript, not just minified code?

Yes - it reformats any valid JavaScript with consistent 2-space indentation, which is also useful for cleaning up inconsistently formatted code.

What if the input has a syntax error?

The formatter may produce unexpected output or fail, since it relies on being able to parse the JavaScript structure. Fix obvious syntax issues first if the result looks wrong.

Is my code sent anywhere?

No - formatting happens entirely in your browser.

quick_facts.json

{

"runs_in_browser": true,

"data_sent_to_server": false,

"signup_required": false,

"price": "free",

"category": "Converters"

}

Related tools

#FF
No signup
Color Converter

Convert colors between HEX, RGB, HSL, and CMYK — online color converter with live preview.

Open tool
No signup
Timestamp Converter

Convert Unix timestamps to and from human-readable dates.

Open tool
JSON
No signup
CSV to JSON

Convert CSV files into structured JSON, with optional type inference.

Open tool