Edit Markdown & code

Open a Markdown, code, or text file and edit it with syntax highlighting and a live preview — free, in your browser. Nothing is uploaded.

Drop a .md, code, or text file here

or click to choose a file. Everything stays on your device.

or start a blank document:

How it works, step by step

  1. Drop a Markdown, code or text file on the box above, or click it to choose one. You can also start a blank Markdown or plain text document.
  2. Edit in the editor. Highlighting is chosen from the file name, and you can change the language from the menu in the editor bar.
  3. For a Markdown file, watch the live preview beside the editor. Hide it from the editor bar if you want more room.
  4. Click Download to save the edited file. It keeps the file name you gave it.

How do I edit a Markdown file online?

Open the .md file above, or start a new Markdown document. The rendered result updates beside the editor as you type, so you see headings, lists, links and code blocks as they will look. When you are done, press Download to save the .md file.

The file is read and edited in your browser tab and is never uploaded, so it is fine for private notes and drafts. Nothing needs to be installed, and there is no account.

Which languages and file types does it handle?

Markdown, JavaScript, TypeScript, Python, HTML, CSS, SCSS, Less, JSON, XML, YAML, TOML, SQL, C, C++, C#, Java, Kotlin, Swift, Go, Rust, PHP, Ruby, shell scripts, PowerShell, Dockerfile, Lua, Perl, R, INI and .env files, diffs, and most other plain-text formats. The editor is CodeMirror, the same open source editor that many websites use for code.

If the file name does not tell the editor what language it is, pick one from the language menu, or leave it as plain text. Binary files, and files above 5 MB, are refused, because this is a text editor and not a tool for large data.

Can I search and replace, and use regular expressions?

Yes. Press Ctrl+F (Cmd+F on a Mac) to open find and replace. You can match whole words, match case, or use a regular expression, and replace one match or all of them. The editor also closes brackets and quotes for you, folds blocks of code, and supports several cursors and rectangular selection.

Will saving change my file's encoding or line endings?

The file is saved the same way it was opened, and the editor bar shows the encoding. If you type a character that the original encoding cannot hold, such as an emoji in an old Windows-1252 file, the editor asks whether to save as UTF-8 instead, and lets you cancel and change the text.

Is this a replacement for my code editor?

For quick jobs, yes: fixing a config file, tidying a README, changing a JSON value on a computer that is not yours. For a project with many files, a full editor on your own machine is the better choice. If you work with documents more than code, Edit PDF and the design editor run the same way, in the browser with no upload.

Frequently asked questions

Is it free?
Yes. Kopitiam is paid for by ads, with no paywall and no sign-up.
Does my file get uploaded?
No. The file is read and edited in your browser, and it never leaves your device.
Does it preview Markdown?
Yes. Open a .md file and a rendered preview updates beside the editor as you type.
Is there syntax highlighting?
Yes, for more than 30 languages. It is picked from the file name, and you can change it from the language menu.
How large a file can I open?
Up to 5 MB. Larger files, and binary files, are refused.
Do I lose my changes if I close the tab?
The file is not saved anywhere until you press Download. The editor warns you if you close a file with unsaved changes, but you should download before you leave the page.