A code editor that needs no installation
Installing an IDE is overkill when you just need to tweak a config file, fix a script on a borrowed laptop or show a colleague a snippet. This online code editor opens in a browser tab, highlights your code in more than 30 languages and lets you download the edited file when you are done. There is no account and no upload: files stay on your device.
Supported languages
| Group | Languages |
|---|---|
| Web | HTML, CSS, SCSS, Less, JavaScript, TypeScript, JSX, GraphQL |
| Data and config | JSON, XML, YAML, TOML, INI, Markdown, SQL |
| General purpose | Python, Java, C, C++, C#, Go, Rust, Kotlin, Swift, Dart, Ruby, PHP, Perl, Lua |
| Scripting | Shell (Bash) and plain text |
Choosing the right language matters: it controls how keywords, strings and comments are colored, which makes errors such as an unclosed quote much easier to spot.
For plain notes, logs or data without a specific syntax, choose plain text; nothing is colored and the file is shown exactly as it is.
What you can do with it
- Edit configuration files such as
docker-compose.yml,.env-style INI files,package.jsonornginxsnippets without a local editor. - Fix scripts on the go – correct a typo in a Python or shell script from any computer.
- Write code for interviews and exercises with proper highlighting instead of a plain text box.
- Prepare snippets for documentation, then export them as highlighted HTML with the code syntax highlighter.
- Compare edits – paste the original and your version into the diff checker to review changes before saving.
Editing, not running
This is an editor: it does not compile or execute code, which keeps it safe and fast for any language. When you do want to run something:
- JavaScript runs in the sandboxed JavaScript tester with a console for logs and errors.
- HTML, CSS and browser JavaScript render live in the real-time HTML editor.
- Everything else needs the language's own runtime or compiler on your machine.
Online editor vs desktop IDE
A desktop IDE such as VS Code, IntelliJ or Visual Studio offers autocompletion, refactoring, debugging, Git integration and extensions. Those are essential for day-to-day development on a large project. A browser editor wins when speed and availability matter more: it opens instantly on any device, works on locked-down machines where you cannot install software, and is perfect for single files. Many developers keep both: the IDE for projects, a web editor for quick edits and sharing.
Tips
- Check structured files before you save them: JSON, YAML and XML have validators on this site, and a formatter can fix inconsistent indentation.
- Keep the original file until you have tested the edited version.
- Remember that your work is not stored online. Download it before closing the tab.
Privacy
The editor runs entirely in your browser. Opened files are read locally and edits are never sent to a server, which makes it suitable for private code and configuration that contains internal hostnames. Still, avoid pasting real passwords or API keys into any web page if you can.
Online code editor for Python
To use this page as an online code editor for Python, choose Python in the Language list so that keywords, strings and comments are highlighted. The editor does not run code, so a syntax check is the step to add before you rely on an edited script. An error that slips through easily in a browser is indentation that mixes tabs and spaces: the lines can look aligned on screen, yet Python refuses the file. The built-in compile() function reports this, and any other syntax error, without executing anything.
source = '''def total(prices):
result = 0
for price in prices:
result += price
\treturn result
'''
try:
compile(source, "edited.py", "exec")
print("Syntax OK")
except SyntaxError as err: # also catches IndentationError and TabError
print(f"{type(err).__name__} on line {err.lineno}: {err.msg}")
For a saved file, python3 -m py_compile edited.py runs the same check from a terminal, and once the code compiles the Python formatter gives it a consistent layout.