Pretty format JavaScript

Privacy friendly: This tool runs locally in your browser. Your input is not uploaded, stored, logged, or shared.

JavaScript formatter and minifier

Use this JavaScript formatter to add readable line breaks and indentation to snippets, or minify simple JavaScript into a compact form. It is useful for quick debugging, reviewing copied scripts, and cleaning small examples before sharing them.

JavaScript formatting runs locally in your browser, so pasted code is not uploaded.