Online Code Editor
CodeMint: write code in 100+ languages with autocomplete. Type a word like for and press Tab to fill in the whole line. Run JavaScript, Python, Ruby, PHP, R, SQL, HTML, React, Markdown and more right in your browser.
Free online code editor with autocomplete for 100+ languages
CodeMint is a fast code editor that runs in your browser. It highlights the syntax of more than 100 languages and dialects, matches brackets, folds code and suggests words as you type. For about 30 popular languages it also knows ready-made snippets, so a few keys can write a whole line or block.
Type a few letters, press Tab
Start a line with for, def, if, fn, func or #include and a grey suggestion appears after the cursor. Press Tab and the full line is written with the cursor on the first blank, ready to type. In HTML, type ! and Tab for a full page. The Snippets button lists everything available for the language you picked.
What runs where
- In your browser (private): JavaScript, TypeScript, HTML, CSS, Python, SQL (SQLite), Lua, Ruby, PHP, R, Prolog, Scheme, Brainfuck, plus Markdown, SCSS/Sass/LESS, React (JSX/TSX), Mermaid and Graphviz renderers. Your code never leaves your device.
- On a server: compiled languages such as C, C++, Java, Go, Rust and C#. They need a compiler, so the code is sent to a code-runner service. You see a notice and must agree before the first run.
- Edit only: the remaining languages get highlighting, autocomplete and download, but cannot be run here.
See what is wrong, and fix it with one click
While you type, mistakes get a red or yellow underline. Hover on it to read what is wrong and press the green button to apply the fix: a missing : in Python, an unclosed bracket or tag, = instead of ==, a misspelled name ("did you mean console?"), a missing ; in C or Java, a trailing comma in JSON. When a run fails, a card under the output shows the line, explains the error in plain words and offers a fix. Fix all applies every safe fix at once.
Handy extras
Press Ctrl + Enter to run and Ctrl + Shift + P for the command palette (switch language, theme or layout from the keyboard). Format tidies JavaScript, TypeScript, HTML, CSS, JSON, Markdown, YAML and SQL. Choose a theme such as Dracula, One Dark or Nord, or turn on Vim keys, in Settings. For HTML you get three tabs (index.html, style.css, script.js) and one live preview. Use the Input tab to give your program text to read. Share copies a link that contains your code, and your work is saved in this browser for each language.
Frequently asked questions
Which languages can I run in the browser?
JavaScript, TypeScript, HTML, CSS, Python, SQL (SQLite), Lua, Ruby, PHP, R, Prolog, Scheme and Brainfuck, plus live renderers for Markdown, SCSS/Sass/LESS, React (JSX/TSX), Mermaid and Graphviz. Python (about 10 MB), PHP (about 12 MB), Ruby and R (about 30 MB each) download their engine the first time you use them, then your browser keeps it.
Can I run C, C++, Java, Go or Rust?
Yes, on a server, when the site owner has switched the server runner on. You can always write and download code for them.
Is my code private?
For the languages that run in the browser, yes: nothing is uploaded. For server languages the code and input are sent to the runner, and you are asked first.
Does TypeScript check my types?
No. Types are removed and the code runs as JavaScript. Type errors are not reported.
Why is there no DOM in the JavaScript mode?
JavaScript runs in a separate worker, which is safe and can be stopped. To use the page, buttons or the DOM, choose HTML and write a script tag.
How do I share my code?
Press Share. The link contains your code, so anyone who opens it sees the same program. Very long programs are too big for a link; use Download instead.
How does the error help work?
The editor checks your code while you type using built-in rules, so it works instantly and your code is not sent anywhere. It catches common mistakes, not every possible one: a program can still fail when you run it, and then the error card explains the message.
Is it free?
Yes. There is no signup, no watermark and no limit on how often you run browser languages.