VantlyAll tools
All developer tools

Format and validate code

JSON, HTML, XML, CSS and JavaScript. Beautify to read it, minify to ship it, and get told exactly where the error is.

Indent
Input
Result

Minifying here only removes whitespace. It will not rename variables or drop unused code, because those need to understand the program and are a build step rather than a text tool.

Questions

Why does it tell me the line and column for JSON?
Because "Unexpected token" on its own is useless in a four thousand line file. The position is pulled out of the parser error and turned into a line and column, which is the whole reason to use this rather than pressing prettify in an editor.
Is my code uploaded?
No. It is formatted in your browser, which matters if what you are pasting is a config file or an API response with real data in it.
What does minify actually do here?
It removes whitespace and nothing else. It will not rename variables or drop unused code, because those need to understand the program and belong in a build step. A minifier that changes behaviour is worse than no minifier.
Is there a size limit?
No. Very large files take a moment to format because the work happens on your machine, but nothing is capped.