Seguramente hemos encontrado sitios web que hacen buen uso de JavaScript, y queremos saber cuál es el código como para guiarnos en nuestros proyectos web (más no copiarlos), pero nos encontramos con que el código está encriptado, comprimido ó poco legible. Es justamente donde entra a tallar JavaScript Beautify. Para entender mejor el funcionamiento de esta herramienta, veamos un ejemplo:

Una función e JavaScript comprimida:

function nuevoAjax(){var xmlhttp=false;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){xmlhttp=false}}if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){xmlhttp=new XMLHttpRequest()}return xmlhttp} 

Usando JavaScript Beautify: 

function nuevoAjax() {
var xmlhttp = false;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP")
} catch(e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")
} catch(E) {
xmlhttp = false
}
}
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
xmlhttp = new XMLHttpRequest()
}
return xmlhttp
}

¿No es más legible en código ahora?

Vía Ajaxian