開発者ツール

Beautify JavaScript online

Beautify and reformat JavaScript code for readability.

JS Beautifier

Upload file
Drag & drop a file here, or choose a file.
入力
出力

使い方

  1. Paste JavaScript into the input.
  2. Click Beautify to format the code.
  3. Copy or download the output.

Best practices

  • For best performance, try with smaller inputs first.
  • Preview the output before downloading or sharing it.
  • Avoid pasting sensitive data on shared devices.

プライバシー

一部のツールはブラウザで実行されます。機能によってはサーバー処理が必要な場合があります。

Example 1
入力
function hello(name){console.log('Hello '+name)}
出力

                                    
Example 2
入力
if(a){b();}else{c();}
出力

                                    

Was this tool helpful?