All Tools

Code Formatter

This code formatter uses Prettier in the browser to format JavaScript, HTML and CSS with consistent indentation and spacing

This code formatter uses Prettier in the browser to format JavaScript, HTML and CSS with consistent indentation and spacing. The source stays on the device, and the formatted result can make compressed snippets easier to read, review and reuse.

Clean up a JavaScript example, Indent copied HTML markup, Make a CSS snippet easier to scan, and Standardize code before a review or tutorial

Choose the correct language and paste syntactically valid code. Formatting changes layout, not program logic, and it cannot repair an incorrect algorithm. Keep a copy of important source code before replacing a file with the formatted output.