Code Tools
4 free tools · Minify, beautify and compare code.
Minify JavaScript, beautify code, highlight syntax for blogs and compare two versions of a file.
About our code tools
Front-end developers, bloggers and teachers regularly need to tidy, shrink, present or compare code. These code tools minify JavaScript with Terser, the same minifier used by Vite and webpack; beautify JavaScript, JSON, HTML and CSS; produce syntax-highlighted code that keeps its colours when pasted into WordPress, Google Docs, slides or email; and compare two versions of a file in side-by-side or unified view with a copyable patch.
All four tools run in the browser with established open-source libraries, so the output matches what professional build tools and editors produce, and your source code is never uploaded. That makes them suitable for proprietary code and configuration files. Each page notes limits, such as JSX or TypeScript needing compilation before minifying, and the beautifier covering web languages only, so you can choose the right tool quickly. For SQL, XML and JSON formatting, see Developer Tools, which covers those languages separately, and Data Tools for converting between data formats.