PixNudge

JavaScript beautifier and minifier

Beautify minified or messy JavaScript into readable code, or minify JavaScript with Terser to shrink it for production.

Input
Result

How it works

  1. 1

    Paste or type your input

    Paste text or code, type a value or open a file. Where a sample is offered, it shows how the tool works.

  2. 2

    Pick the options

    The result updates as you type. Switch modes or change the options to get exactly the output you need.

  3. 3

    Copy or download

    Copy the result to the clipboard with one click or download it as a file.

Why PixNudge

Nothing leaves your browser

Passwords, API keys, tokens, SQL queries and customer data are processed on your device and never sent to a server.

Instant results

There is no upload and no waiting: results appear while you type, even for large inputs.

Free, no sign-up

No account, no limits and no ads inside the tools. Bookmark the page and use it whenever you need it.

Frequently asked questions

How does the minifier work?

It uses Terser, the same minifier used by many build tools. It removes whitespace and comments, shortens local variable names and simplifies code without changing what it does.

Can I unminify a minified file?

Formatting restores line breaks and indentation, which makes minified code readable again. Original variable names and comments cannot be recovered.

Does it support modern JavaScript?

Yes. Modern syntax such as arrow functions, classes, async/await, optional chaining and modules is supported. TypeScript type annotations are not; strip them before minifying.

More free tools