Skip to content

Code Beautifier

Format HTML, CSS, JS, TypeScript, JSON, Markdown, YAML and XML with Prettier.

Ready In your browser

Result

Paste code to start

Language —
Lines —
Before
—
After
—
Engine
—
  1. Code
    —
    Pasted or opened
  2. Language
    —
    Detected or chosen
  3. Parsed
    —
    Into a syntax tree
  4. Printed
    —
    With your options

Formatted code

Options

Changes apply at once.

Output

Press Format to see the result.

Where this tool works

Runs in your browser.What you type or add stays on your device. Nothing is sent to this site.

More Generators