You can use this : http://jsbeautifier.org/ But it depends on the minify method you are using, this one only formats the code, it doesn't change variable names, nor uncompress base62 encoding.

edit: in fact it can unpack "packed" scripts (packed with Dean Edward's packer : http://dean.edwards.name/packer/)

Answer from Fabien Ménager on Stack Overflow
🌐
Unminify
unminify.com
Unminify JS, CSS, HTML, XML and JSON Code
Free tool to unminify (unpack, deobfuscate) JavaScript, CSS, HTML, XML and JSON code, making it readable and pretty.
🌐
Unminify2
unminify2.com
Unminify JS, CSS, HTML
Free online tool to unminify JS, CSS, HTML compressed code, making it readable again. Unminify, uncompress and beautify any minified JS, CSS, HTML code.
🌐
Reddit
reddit.com › r/learnjavascript › how to un-minify/deobfuscate minified/deobfuscated js code
r/learnjavascript on Reddit: How to Un-minify/Deobfuscate Minified/Deobfuscated JS Code
March 18, 2025 -

I found some large JS files online that I'd really like to peel back and learn from. However, the code is minified/obfuscated (whichever you'd describe it). From what I could get out of searching around it might be done by a bundler of some sort. Below is a snippet of what I'm working with.

P.S. Just to clarify I'm not doing this to learn HOW to write javascript, I've used javascript for most of my projects. I sometimes like to see how some of my favorite apps/websites do what they do.

(() => {
"use strict";
var e,
t,
n,
r = {
8029: function (e, t, n) {
var r = (this && this.__importDefault) || function (e) { return e && e.__esModule ? e : { default: e }; };
Object.defineProperty(t, "__esModule", { value: !0 }), (t.TotalStats = t.WebsiteStats = void 0);
const a = r(n(7294)), l = r(n(932)), o = n(2247), u = n(5761), i = n(2540),
s = l.default.div`
display: flex;
flex-direction: column;
gap: ${(e) => e.theme.spaces.minimal};
margin-bottom: 15px;
`;
(t.WebsiteStats = function (e) { const { t } = (0, o.useTranslation)(), { summary: n } = (0, u.useSummarizedOpenAttempts)(e.website.host), r = e.website.name; return a.default.createElement(
s, null, a.default.createElement(i.Round.Large, null, n.last24HoursAttempts.length), a.default.createElement(i.Paragraph.Small, null, t("interventions.basicBreath.last24Hours", { subject: r })));
}), (t.TotalStats = function () { const { t: e } = (0, o.useTranslation)(), { preventedAttemptsIndication: t, populatedEnough: n } = (0, u.useWebsitesStatsSummary)(),
r = Math.round(60 * t * 3), l = (0, u.useFormatDuration)(); return n ? a.default.createElement( i.Paragraph.Small,
{ style: { textAlign: "center" } }, e("popup.totalTimeSaved", { time: l(r) })
) : null;
});
},
...
}
...
}
)();
🌐
Website Planet
websiteplanet.com › webtools › unminify-js
Unminify JS & CSS Code Online: Quick and Completely Free
July 26, 2024 - Our free (no hidden costs) JS & CSS Unminify tool lets you uncompress, reformat, and reindent ugly JS & CSS code to make it readable. Copy and paste your code directly into the box above, or upload multiple JS or CSS files to see the unminifier in action.
🌐
Unminify
unminify.io
Unminify
Safety Level: · Wildly Unsafe · Useless · Mostly Safe · Unsafe · GitHub · Unminify
Find elsewhere
🌐
GitHub
gist.github.com › edwardlorilla › d43877fe489d8066c7e5632d61e6ff26
unminify css, html, js · GitHub
Clone this repository at <script src="https://gist.github.com/edwardlorilla/d43877fe489d8066c7e5632d61e6ff26.js"></script>
🌐
Code Unminifier
app.jsmon.sh › tools › unminify
Unminify JS, HTML & CSS - Free Code Beautifier Tool
January 1, 2025 - Free online tool to unminify and beautify JavaScript, HTML, and CSS code. Instant code formatting for better readability and debugging. No registration required.
🌐
Nero
nero.com › eng › webservices › nero-unminifyjs
Unminify JS: Improve readability
Optimizations could lead to faster page load speed. Unminifying involves reversing the process of code minification, which compresses code to reduce file size and improve page load speed.
🌐
Unminify All
unminifyall.com
Unminify Html | Css | Javascript | JSON | XML - Unminify All
Free online tool for minify and unminify HTML - CSS - JS - XML, and JSON. Make it debuggable - readable or single-lined by unminify all.
🌐
Medium
mrexamples.medium.com › unminify-f0612acb7ab0
Unminify. Unminify is a process that involves… | by Learn Programming with mrexamples.com | Medium
March 16, 2023 - JSBeautifier can take minified ... readability. 3. Unminify — Unminify is a simple online tool that can unminify code in several programming languages, including JavaScript, CSS, and HTML....
🌐
IPVoid
ipvoid.com › js-unminify
Unminify JS Code Online, Uncompress JavaScript Online | IPVoid
Use this online JS unminifier tool to uncompress JavaScript by converting minified JS to nicely formatted and indented JS code.
🌐
Newisty
newisty.com › unminify-js
Unminify JS (Javascript) - Newisty
April 30, 2022 - Unminify, Format your messy JavaScript (JS) source code to make it easier and faster to read and understand.
🌐
Unminifytool
unminifytool.com › home
Unminify Tool: Beautify JS, CSS, HTML, XML & JSON Free
September 17, 2025 - Our free online tool transforms minified JavaScript, CSS, HTML, XML, and JSON into beautifully formatted, readable code, making it easier to debug and analyze. Yes, it’s 100% free! No sign-up or hidden fees—just paste your code and unminify instantly.
🌐
Unminify All
unminifyall.com › unminify all › unminify js minify javascript minifier - unminify all
Unminify JS Minify Javascript Minifier - Unminify All
April 18, 2023 - A free Online Unminify JS minify Tool. You can download your beautified or raw code as text file OR share url of it.
🌐
Reddit
reddit.com › r/webdev › can i de-minify css or javascript somehow?
r/webdev on Reddit: Can I De-Minify CSS or JavaScript Somehow?
November 21, 2019 -

There have been plenty of times when I have seen a cool web app or site and wondered how it worked. I want to see the CSS or the JS and see if I can work out what's going on.

I hit the dev console or give Firefox a Ctrl+u and am greeted by a massive wall of text - it's minified (I assume) for speed/efficiency reasons. But I want to read it!

I've been trying to figure out a way to de-minify stuff. I've been looking in the dev console and VSCode. But if there is a way to do this it's not obvious to me.

Is there any way?

Edit - Just want to say that I really appreciate this subreddit and want to thank everyone for their patience with those of us who are really, really new to web development.

🌐
Unminify
unminify.xyz
Unminify JS, CSS, HTML | Unminify
Our Unminify tool expands compressed code to make it easier to read and understand. It works with JavaScript (JS), CSS, HTML, XML, and JSON and can process both files and pasted code snippets.
🌐
Free Tool Online
freetoolonline.com › js-unminifier.html
JavaScript UnMinifier - Free Tool Online
November 13, 2024 - Use this free unminify tool for JavaScript and CSS to get a cleaner, structured version of your code in seconds.