Formatters

JavaScript Formatter

Format and prettify JavaScript code

Input
1:00 Bytes
Output
1:00 Bytes

Features

Beautify JS

Reformats minified or unreadable JavaScript into clean indented code

Switch Input / Output

Swap editor contents with a single click

Line Wrap Toggle

Toggle line wrapping to handle long minified bundles comfortably

Copy & Download

Copy the result to clipboard or download as a .js file

Reading someone else's JavaScript

Minified JavaScript is intentionally unreadable — variable names are shortened, whitespace is stripped, and everything is packed onto as few lines as possible. When you're debugging a third-party script, inspecting a bundle, or working with code that wasn't put through a source map, you need to un-minify it before you can make sense of it. Paste it here and the formatter restores the indentation and spacing.

Line wrap for long lines

Minified files often have lines that are thousands of characters long. The line wrap toggle keeps those lines within the visible editor width so you don't have to scroll horizontally. Turn it off if you're working with code that was already formatted and you want to keep the original line breaks.