Code Editor

Edit Code with Syntax Colors.

Loading…

Sometimes you need to read or change a script on a machine with no editor installed. This one colors the code, numbers the lines, keeps your indentation when you press Enter, and indents or outdents a selection with Tab and Shift+Tab.

It detects the language by itself or lets you pick: JavaScript, TypeScript, Python, HTML, CSS, JSON, PHP, Java, C, C++, C#, Go, Rust, Ruby, SQL, shell, YAML and Markdown. Format re-indents JavaScript, HTML, CSS and JSON. You can also save the code as a picture for a slide or a post.

How to use the Code Editor tool

  1. Open a file or paste code.
  2. Edit it; choose the language if the guess is wrong.
  3. Download the file, copy the code, or save it as a picture.
  • Quick edits to a config or script on a locked-down computer
  • Reading a code file sent by email
  • Making a clean screenshot of a snippet

Tips for the best result

  • The dark theme is easier on the eyes for long sessions; untick it for printing.
  • JSON that fails to format has a syntax error; the message says where.

Quick facts

PriceFree
Works withJS, PY, HTML, CSS, JSON and more
Where it runsIn your browser, on your device
AccountNot needed

Frequently asked questions

Can it run my code?

No. It edits and colors code. For HTML, CSS and JavaScript, the HTML Editor shows a live result.

How big a file can I open?

Up to 3 MB. Larger files make typing sluggish in any browser editor.

Does it save automatically?

No. Download the file when you're done.

Which languages can it format?

JavaScript, TypeScript, HTML, CSS and JSON. The others are colored but not re-indented.