While this results in files that are difficult for humans to read, browsers are still able to load and parse the data (unless the minification process has been a bit heavy-handed).
These files are normally used in preference over the unminified versions because of the reduced file size – making for quicker page load times.
Now, I’ve already reviewed an online ‘Unminifier’ but that doesn’t mean it’s your only choice – as we know, the Internet is full of choices.
Enter unminifycode.com – a simple website which will take your minified file contents and present it in a more readable format, adding the whitespace and formatting back in. It obviously won’t try to rename any variables or functions that were shortened during the minification process.
Simply copy the file contents and paste it into the large text box and click ‘Unminify’ – I’ve used moment.min.js here for demo purposes (I know that the unminified version is easily downloaded)
After a short delay the nicely formatted code will be presented and you can just copy it and paste it as you see fit.
Comparing the output of each tool the only differences appears to be a bit of whitespace – nothing that would affect the validity of the content itself.
So there you have it, you wait for an unminification tool and then two come along 😉