Code formatter
Beautify JavaScript, TypeScript, JSON, CSS, HTML, Markdown, YAML and GraphQL with Prettier.
How to use
Code formatter lets you beautify JavaScript, TypeScript, JSON, CSS, HTML, Markdown, YAML and GraphQL with Prettier. Paste your code and it is beautified with consistent indentation and spacing, ready to copy.
Formatting runs client-side, so your source code never leaves your machine. It's completely free, with no sign-up, no watermarks and no limits on how often you use it.
Examples
Paste a minified or messy snippet and get clean, readable output you can drop straight back in.
Once code formatter shows your output, use the copy or download button to grab it — no retyping.
Frequently asked questions
Is Code formatter free to use?
Yes. Code formatter is completely free with no sign-up, no watermarks and no usage limits.
Is my data private?
Yes. Formatting runs client-side, so your source code never leaves your machine.
Does Code formatter work on mobile?
Yes. It works in any modern browser on desktop, tablet or phone, and keeps working offline once the page has loaded.