Instant readable code

JavaScript Beautifier

Paste minified or messy JavaScript and get clean, properly indented code — formatted locally in your browser.

Beautified output

How it works

1

Paste your JavaScript

Drop in minified, bundled or just poorly indented code.

2

Pick an indent size

Choose 2 spaces, 4 spaces or tabs to match your style.

3

Copy the result

Get readable, consistently indented code ready to paste back into your editor.

FAQ

Does this change how my code runs?

No. It only reformats whitespace and line breaks; the logic and tokens of your code are left untouched.

Is my code uploaded to a server?

No. Beautifying happens locally in your browser and your code is never sent anywhere.

Does it handle every JavaScript syntax edge case?

It uses a lightweight formatter tuned for everyday code. Unusual syntax like complex template literals or regex containing braces may format imperfectly.

Try other tools