Beautify and Highlight

Re-indent and colour code in your browser. Nothing is uploaded; libraries load only when used.

Paste or load code, pick a language, then Beautify.

Input

Output

Re-indent supported for JSON, JavaScript, CSS, HTML/XML, BibTeX, and Java. Other languages are highlighted as-is.