JavaScript formatter

Format or minify JavaScript while keeping it entirely inert.

Browser-based processing · No account needed · Inputs are not automatically saved
JavaScript formatter

Ready when you are. Try the sample or use your own input.

How to use this tool

Format with Prettier or compact with Terser. Neither action executes the submitted code.

A quick example

Format adds indentation and consistent spaces.

Supported formats & limitations

JavaScript only; TypeScript and JSX minification are not supported. Compression and name mangling are disabled to avoid semantic optimizations. Limit: 1 MiB.

Does this tool upload my input?

No. Tool processing happens in your browser. Your input and result are not automatically saved. The host may still receive ordinary page access logs.Read about privacy.

Find your next tool

JSON formatterCode & dataCSV ↔ JSONCode & dataSQL formatterCode & dataBase64 encoder / decoderText & encodingURL encoder / decoderText & encodingHTML entity converterText & encodingText difference checkerText & encodingWord & character counterText & encodingText case converterText & encodingUUID generatorCode & dataUnix timestamp converterTime & numbersPercentage calculatorTime & numbersXML formatter & validatorCode & dataHTML formatterCode & dataCSS formatter & minifierCode & dataJavaScript formatterCode & dataRegular expression testerCode & dataSHA hash generatorCode & dataNumber base converterTime & numbersData-size converterTime & numbersUnit converterTime & numbersDate difference calculatorTime & numbersTime-zone converterTime & numbersLine toolsText & encodingImage resizerImage & designImage compressorImage & designImage format converterImage & designFavicon generatorImage & designColour converter & pickerImage & designColour contrast checkerImage & designQR-code generatorImage & designDiscount calculatorTime & numbers

Tab or arrow keys to explore · Enter to open · Esc to close