Barokit

JavaScript Beautifier

Re-indent minified or compressed JavaScript for readability. Useful for analyzing external libraries, reading others' code, debugging, and educational code unpacking.

🔒 Browser-basedNo watermarkNo signup

How to use

  1. 1Paste minified JS.
  2. 2Press format.
  3. 3Copy the cleaned-up result.

FAQ

Does TypeScript work?+

Similarly. TS-specific syntax (: string, generic <T>) is generally recognized.

Beautify vs minify?+

Beautify formats for human reading; minify compresses for size. Opposite operations.

Does the meaning change?+

Only whitespace and line breaks are added — execution result is identical. Short variable names from minification stay though.

Can I restore mangled names?+

Not possible — variable names like 'a, b, c' need source maps to restore.

Does JSON work?+

For JSON specifically, [JSON Formatter] is better (includes validation and key sorting).

Indent settings?+

Usually 2 spaces, 4 spaces, or tab. Match your team's convention.

Related tools