Skip to main content
dubinity

Developer & Web

JavaScript Formatter

Indent and format JavaScript or TypeScript, including minified bundles, with a choice of brace style.

  • Runs in your browser
  • Works on mobile
  • In: JavaScript, TypeScript, JSON
  • Out: JavaScript
Loading the tool…

Your files and text are processed on your own device, inside this page. Nothing is uploaded to Dubinity or stored, and closing the tab discards it. How privacy works

About JavaScript Formatter

Re-indents JavaScript, TypeScript, JSX and JSON with two or four spaces or tabs, and puts braces where you prefer.

It is a formatter, not a de-obfuscator: minified code becomes readable but variable names stay short, because the original names are gone from the file.

How to use it

  1. 1Type or paste your text, or open a file.
  2. 2Choose any options - the result updates as you type.
  3. 3Copy the result or download it as a file.

Questions

Was this tool helpful?

All developer tools
  • JavaScript Minifier

    Minify JavaScript with Terser: compression, name mangling and licence comments kept if you want them.

    JavaScript
    Runs in your browserOpen tool
  • HTML Formatter

    Indent messy or minified HTML so you can read it, with a preview of how it renders.

    HTML
    Runs in your browserOpen tool
  • CSS Formatter

    Indent and tidy CSS, SCSS or LESS so a minified stylesheet becomes readable again.

    CSS · SCSS · LESS
    Runs in your browserOpen tool
  • JSON Formatter

    Format and indent JSON, or minify it, with exact error positions and big numbers kept as written.

    JSON
    Runs in your browserOpen tool
  • Password Generator

    Create strong random passwords with the character rules a site demands, and see the real entropy.

    NONE
    Runs in your browserOpen tool
  • What Is My IP

    See the IP address our server sees, the rough location attached to it and what your browser sends.

    NONE
    Server lookupOpen tool