The title says it all, I'm looking for a library or some piece of JavaScript code to beautify PHP code. (would be good if it could also tidy HTML or JavaScript but not necessarily)

Does anyone know such a library?

  • Do you care about pricing? how about server-side (ie Node.js) or client side (ie browser)? Commented Aug 11, 2014 at 18:42
  • @NickWilde I'm actually looking for a free tool (just a spare time project) and it should be useable on client side. (node.js library is okay as long as it is 100% JavaScript)
    – idmean
    Commented Aug 11, 2014 at 18:45

1 Answer 1


Since it seemed like there was no such library so I've written one myself. You can find it here:


I've also written about it on my blog:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.