JavaScript Editor
runs in your browserno sign-upfree
Edit JavaScript in a full-page editor with syntax checking, Prettier formatting and minifying.
Checking…
About this tool
This JavaScript editor gives you one large editor with syntax highlighting, code folding and search. It checks modern JavaScript (including JSX and ES modules) as you type and marks the first syntax error, formats code with Prettier and minifies it with Terser. Under the editor you see the number of functions, classes and imports. Everything runs in your browser; your code is never run.
How to use
- Paste or type JavaScript into the editor, or open a .js file from your computer.
- Watch the status line under the editor: it shows the first syntax error with its line and column, and marks it in the code.
- Press Format to tidy the code or Minify to make it as small as possible.
- Use Full screen for more space, and fold or unfold blocks to focus on one part.
- Copy the code or download it as a .js file.
FAQ
Does the editor run my code?
No. The code is only parsed to find syntax errors and to format or minify it. It is never executed.
Which JavaScript versions are supported?
Modern JavaScript (ES2024 and newer features such as optional chaining and top-level await), JSX and ES modules.
Can I undo Format or Minify?
Yes. Press Ctrl + Z (⌘ + Z on Mac) in the editor to undo it, just like a normal edit.
Are there keyboard shortcuts?
Ctrl/⌘ + Enter formats the code, Ctrl/⌘ + F opens search inside the editor, and Esc leaves full screen.
Is my code sent to a server?
No. Editing, checking, formatting and minifying all run in your browser. Your last code is only saved in this browser so it is still there when you come back. Press Clear to remove it.