/
Format JSON, HTML, CSS, SQL, and Markdown. Note: for production-quality formatting, consider Prettier locally.
A multi-language code formatter supporting JSON, HTML, CSS, SQL, and Markdown. Paste messy code and get properly indented, consistently styled output in one click using Prettier-compatible formatting rules. No code is sent to a server — formatting runs entirely in the browser.
Input
select id,name from users where active=1 order by nameOutput
SELECT
id,
name
FROM users
WHERE active = 1
ORDER BY nameThe tool uses Prettier (for JS/HTML/CSS/Markdown) and sql-formatter for SQL, compiled to WebAssembly so everything runs in the browser.
Yes. Use the settings panel to set indent size (2 or 4 spaces, or tabs) and other style options.
TypeScript and JSX formatting may be available under the 'JS/TS' tab. Check the language selector for the full list.