Free JavaScript Minifiers (Minimizers), Obfuscators and Compressors
Obfuscate / Minify / Shrink JavaScript Source Code
Free JavaScript Minifiers (Minimizers), Obfuscators and Compressors
The free software on this page will either shrink your JavaScript code (often referred to as "minify"), or obfuscate it, or both. They typically minimize the code size by removing duplicate whitespace (although leaving intact whitespaces that are significant, such as those occuring in strings) and comments. Obfuscation usually occurs by renaming your variables, functions and so on, possibly with a random short name.
Webmasters use these tools for a variety of purposes, from improving the responsiveness of their site (by providing a smaller JavaScript file) to making their source code harder to comprehend (by obscuring the variable names and the like).
Note though obfuscation and minification (compression) of the source code does not actually prevent a determined person from figuring out the code. It just makes it a more time-consuming task.
Related Pages
- Free Image Pop-Up JavaScripts (Where Image Overlays Current Web Page)
- Free Image/Photo Slide Show JavaScript
- Free JavaScript Calendar and Date Picker Scripts
- Free Banner Rotation JavaScripts: Rotate Advertisements, Photos, Banners
- How to Use JavaScript to Change a Cascading Style Sheet (CSS) Dynamically
- Free WYSIWYG HTML Editor JavaScripts that you can embed into your site
- Free Embedded Web Video Player Scripts/Code
- How to Make / Create Your Own Website
Free JavaScript Minifiers (Minimizers), Obfuscators and Compressors
- JSMin: The JavaScript Minifier
JSMin is a command line program that shrinks JavaScript source code by removing comments and stripping unnecessary whitespace. It works on ASCII and UTF-8 files. The program is distributed in the form C source code (which you can compile easily with a C compiler on probably most systems since the code appears to be standard C without any system dependencies) as well as an MSDOS executable.
- UglifyJS
UglifyJS is a command line minifier, compressor, obfuscator and beautifier for JavaScript source files. You can get it to mangle names, preserve copyright comments, change the quote styles (single or double quotes), embed everything into one big function, etc. It can also create a source map, that maps the compressed output with the original source file, which may be helpful in debugging. It requires node.js.
- JavaScript Utility
JavaScript Utlity can obfuscate, compact, compress, analyze regular expressions, validate, and even format (beautify) your JavaScript code. This suite of tools can be downloaded and run on your machine (in a web browser) or ran in batch mode on a Windows machine (using the Windows Script Host). Alternatively, you can just use the online version on their site.
Related Pages
- How to Make a Mobile-Friendly Website: Responsive Design in CSS
- How to Move Your Website to SSL (ie, Convert from HTTP to HTTPS)
- How to Make Your Images Mobile-Friendly (Responsive Design)
- How to Point Multiple Domain Names to One Website: And How to Avoid Search Engine Problems When Doing So
- How to Redirect from Your Root Domain to the WWW Subdomain and Vice Versa Using mod_rewrite
- How to Register Your Own Domain Name
- How to Insert a DIV Block and Other HTML Elements into a Web Page Using JavaScript
- Free Royalty-Free Stock Photos
Newest Pages
- How to Convert Your Website from XHTML 1.0 to HTML5 the Quick and Easy Way
- How to Set the Height of a DIV Relative to a Browser Window (CSS)
- Free EPUB Readers (Ebook Viewing Software)
- How to Generate the Free Let's Encrypt SSL Certificate on Your Own (Windows) Computer
- How to Insert Meta Tags into a Web Page with BlueGriffon
- How to Play a Song (or Some Other Audio Clip) from a List on a Website
- Two Ways to View a Binary File on Windows Without Installing Anything
- How to Draw a Horizontal Line on a Web Page with Expression Web
- How to Create a Website Free of Charge
- Why Can't I Make Up Any Domain I Want? Is There a Way to Do Away with a Registrar Altogether?
How to Link to This Page
It will appear on your page as:
Free JavaScript Minifiers (Minimizers), Obfuscators and Compressors