The thing is that you cannot really "unminify" your code since some data was already lost - e.g. variable names. You can reformat it to more readable form though.

  1. According to this question, since VisualStudio 2012 you can just use Ctrl+E, D keyboard shortcut
  2. If the above is not right, there is this extension for VS 2010: http://visualstudiogallery.msdn.microsoft.com/41a0cc2f-eefd-4342-9fa9-3626855ca22a but I am not sure if it works with VS 2013
  3. There is an extension to VisualStudio called ReSharper which can reformat javascript in a few different manners.
  4. Also there are online formatters already mentioned in other answers (if your code is confidential, I would advise some paranoia manifested by downloading sources and using them locally).
  5. Also you may always try to find unminified version of desired library on the interwebs
  6. Also, there is the WebStorm IDE from JetBrains that is able to reformat JS - you may download a trial for the sole purpose of reformatting your minified scripts :)
  7. If that's just to make debugging easier, you may want to use source maps

Also, here is a bunch of related questions:

How to automatically indent source code? <-- this is for VS2010, but it looks promising, maybe it will help you if it supports JavaScript (and it does since VS2012 according to MS support):

Ctrl+E, D - Format whole doc
Ctrl+K, Ctrl+F - Format selection

reindent(reformat) minimized jquery/javascript file in visual studio

Visual Studio 2010 can't format complex JavaScript documents

Visual Studio code formatter

how to make visual studio javascript formatting work?

I am not sure if they figured out a working way to reformat JS, but I've seen a few answers which might be helpful - I am just pasting this in here just FYI.

Added 03.06.2014:

http://www.jsnice.org/

This tool could be useful too, it even tries to infer minified names. As stated on their website:

We will rename variables and parameters to names that we learn from thousands of open source projects.
Answer from Adam Zielinski on Stack Overflow
๐ŸŒ
Unminify All
unminifyall.com โ€บ unminify all โ€บ unminify php or minify php code online - unminify all
Unminify Php or Minify Php Code Online - Unminify All
August 20, 2023 - Unminify or Minify PHP code online โ€“ An online free Php minifier and unminifier by unminify all.
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.
C#
Minify or Unminify C Sharp (C#) Code. You can download your minified or raw code as text File. You can also share it via URL. unminify All
C
Minify or Unminify C Language Code. You can download your minified or raw code as text File (.txt). You can also share it through URL.
C++
Minify or Unminify C plus plus Programming Language. You can download your minified code as text File. You can also share it through URL.
๐ŸŒ
Json Minify
jsonminify.com โ€บ json minify โ€บ minify php (hypertext preprocessor) code online
Minify Php (Hypertext Preprocessor) Code Online
March 1, 2023 - Unminify or Minify Your PHP Code Online - You can download your minified or unminified php code as a text file or share it via URL.
Top answer
1 of 6
7

The thing is that you cannot really "unminify" your code since some data was already lost - e.g. variable names. You can reformat it to more readable form though.

  1. According to this question, since VisualStudio 2012 you can just use Ctrl+E, D keyboard shortcut
  2. If the above is not right, there is this extension for VS 2010: http://visualstudiogallery.msdn.microsoft.com/41a0cc2f-eefd-4342-9fa9-3626855ca22a but I am not sure if it works with VS 2013
  3. There is an extension to VisualStudio called ReSharper which can reformat javascript in a few different manners.
  4. Also there are online formatters already mentioned in other answers (if your code is confidential, I would advise some paranoia manifested by downloading sources and using them locally).
  5. Also you may always try to find unminified version of desired library on the interwebs
  6. Also, there is the WebStorm IDE from JetBrains that is able to reformat JS - you may download a trial for the sole purpose of reformatting your minified scripts :)
  7. If that's just to make debugging easier, you may want to use source maps

Also, here is a bunch of related questions:

How to automatically indent source code? <-- this is for VS2010, but it looks promising, maybe it will help you if it supports JavaScript (and it does since VS2012 according to MS support):

Ctrl+E, D - Format whole doc
Ctrl+K, Ctrl+F - Format selection

reindent(reformat) minimized jquery/javascript file in visual studio

Visual Studio 2010 can't format complex JavaScript documents

Visual Studio code formatter

how to make visual studio javascript formatting work?

I am not sure if they figured out a working way to reformat JS, but I've seen a few answers which might be helpful - I am just pasting this in here just FYI.

Added 03.06.2014:

http://www.jsnice.org/

This tool could be useful too, it even tries to infer minified names. As stated on their website:

We will rename variables and parameters to names that we learn from thousands of open source projects.
2 of 6
5

Personally I can't think of a reason to ever unminify code^:

  • If you're using a compiled js file (a-la google closure) and want more readable code to debug, use source maps available for well-supported libraries (speaking of jQuery, if it is served from a google CDN it already maps to the correct source)

  • If you're using a whitespace-only minified js file and want more readable code to debug, you could just toggle pretty print in-browser. This seems to best fit your question.

  • If you're using either of the above and want to modify the source code for a third-party js file, don't. Any future release will cancel out your change - instead consider one of the many patterns to extend a framework (or, perhaps, do some duck punching depending on the exact scenario.)

The other answers seem to cover the "unminification" process (maxification?) well, but it's worth making sure it's a necessary step first.

^ - Except when version control falls over, there are no backups and the only version of the file left is a minified copy in browser cache. Don't ask.

๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ online_php_formatter.htm
Online PHP Formatter | Tutorialspoint
Online PHP Formatter and Beautifier - Try online PHP Code formatter and beautifier and Editor to beautify and format PHP code using jQuery Plug-in
๐ŸŒ
Php-minify
php-minify.com
Minify
PHP Minify, online compressor for PHP to reduce file size. Removes whitespace and strips comments. Try our other tools, like Obfuscator for PHP and JS
๐ŸŒ
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.
๐ŸŒ
Unminify All
unminifyall.com
Unminify Html | Css | Javascript | JSON | XML - Unminify All
Unminify All provides a user-friendly platform to unminify and minify code for various programming languages online including JavaScript, HTML, CSS, Python, JSON, C++, and many more.
๐ŸŒ
Increase rev
unminifyonline.com โ€บ home โ€บ php
Unminify Php (Hypertext Preprocessor) Code Online
December 9, 2022 - Unminify PHP (Hypertext Preprocessor). You can download your minified or raw code as text File (.txt) OR share it through URL.
Find elsewhere
๐ŸŒ
Edchart
edchart.com โ€บ free-online-converters โ€บ online-html-beautifier.php
Online HTML Beautifier -unminify html code online
Online HTML Beautifier & unminify html code online cleans up your html code and made it pretty more readable. It gives the HTML code proper indentation. The editor also contains helpful syntax highlighting and line numbers.
๐ŸŒ
Code Beautify
codebeautify.org โ€บ php-beautifier
PHP Beautifier and PHP Formatter Online
PHP Formatter helps to format unformatted or ugly PHP data and helps to save and share PHP.
๐ŸŒ
GitHub
github.com โ€บ matthiasmullie โ€บ minify
GitHub - matthiasmullie/minify: CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns. ยท GitHub
CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programm...
Author ย  matthiasmullie
๐ŸŒ
BeautifyTools
beautifytools.com โ€บ php-beautifier.php
Online PHP Beautifier - PHP Formatter - BeautifyTools.com
Beautify dirty, ugly PHP code using Online PHP Beautifier and make your PHP code more readable. It gives the PHP code proper indentation with spaces or tabs.
๐ŸŒ
Js
minify.js.org โ€บ php
Minify PHP Online
Minify your PHP files online by pasting some PHP code into the text area below, or by opening multiple PHP files at once to be combined in the output.
๐ŸŒ
CleanCSS
cleancss.com โ€บ php-beautify
PHP Viewer, Formatter, Editor
Enter your messy, minified, or obfuscated PHP into the field above to have it cleaned up and made pretty. The editor above also contains helpful line numbers and syntax highlighting.
๐ŸŒ
Minifier
minifier.org โ€บ php-beautifier
PHP Beautifier - Format Your PHP Code Instantly
Our PHP Beautifier tool uses advanced algorithms to clean up and organize your PHP code. It makes sure that your code is neat and readable. This is a free tool and does not require you to join or register.
๐ŸŒ
WPCode
library.wpcode.com โ€บ home โ€บ snippets โ€บ php โ€บ unminify schema output in source code
Unminify Schema Output in Source Code - WPCode Library
June 21, 2024 - This filter can be used to unminify schema output in the source code. AIOSEO Team PRO ยท 0 50+ Code Preview ยท Comments ยท php ยท Hosted with โค๏ธ by WPCode ยท 1-click Use in WordPressCopy ยท This snippet will successfully prevent AIOSEO from logging 404 errors for the specified URLs.
๐ŸŒ
Minifier
minifier.org
Minify JS and CSS online, or include the minifier in your project for on-the-fly compression.
HTML Minifier JSON Minifier JSON Formatter HTML Formatter XML Formatter XML Validator JAVA Viewer YAML Validator HTML Decoder PHP Beautifier Excel to JSON SQL Formatter HTML to Markdown CSV Viewer Diff Checker JSON to JAVA JSON to PHP JSON to YAML XML to JSON YAML to JSON XML to YAML JSON to XML CSS Formatter JavaScript Beautifier YAML Formatter Markdown Formatter Text to HTML Converter CSV to JSON Converter CSS Validator HTML Validator Base64 Encoder Decoder SQL Minifier Text Minifier Lua Minifier XML Minifier HTML to PHP Converter HTML to TSV Converter JSON to CSV JSON to TSV JSON Viewer XML