Writing · Free tool

Online Text Editor

Free online text editor and notepad: tabs, split view, open folders, live Markdown preview, find in files and file history. Autosaves in your browser, never uploaded.

Instant resultsPrivate by defaultNo sign-up

Loading your files…

Saved in this browser · files never leave this device · Ctrl+P Goto Anything · Ctrl+Shift+P Command Palette

About this tool

A free online text editor and notepad with the workflow of a desktop editor such as Sublime Text, Notepad++ or VS Code, in a browser tab. Open single files or a whole folder, keep dozens of files in tabs, split the screen into up to four panes, and jump anywhere with Goto Anything, Go to Symbol and the Command Palette. Line numbers, a minimap, multiple cursors, bookmarks, find and replace across every open file, a live Markdown and HTML preview, spell check and syntax highlighting for more than 60 file types are built in. Every change is autosaved in your browser with a version history you can restore, files can be saved straight back to disk in Chrome and Edge, and nothing is ever uploaded.

Features

Tabs and split view

Open up to 50 files. Split into two columns, three columns, two rows or a 2 × 2 grid, drag the dividers to resize, and drag tabs between panes. Right-click a tab to close others, duplicate it or move it to the next pane.

Open a whole folder

Open a project folder in the sidebar and browse it as a tree. In Chrome and Edge, edits save straight back into the folder, and the folder is remembered after a reload. Other browsers open a read-only copy.

Goto Anything and Go to Symbol

Ctrl/⌘ + P finds any open file or any file in the open folder by a few letters of its name; add :120 for line 120. Ctrl/⌘ + R, or @ in Goto Anything, jumps to a Markdown heading, class or function.

Command Palette and menus

Every command is in a desktop-style menu bar and a searchable Command Palette (Ctrl/⌘ + Shift + P or F1), each with its shortcut. Right-click menus on tabs and files put common actions one click away.

Live Markdown and HTML preview

Preview Markdown, with tables, task lists and code blocks, or an HTML page beside the editor (Ctrl/⌘ + K, V). The preview scrolls with the editor and never runs scripts from the file.

Outline, minimap and bookmarks

The Outline tab lists headings, classes, functions and INI sections and highlights where you are. A clickable minimap, line numbers and gutter bookmarks (Ctrl/⌘ + F2, then F2) help in long files.

Multiple cursors and column selection

Add the next match with Ctrl/⌘ + D, select every match at once, split a selection into one cursor per line, add cursors above and below, or Alt-drag a box selection.

Find and replace in all files

Search one file with Ctrl/⌘ + F, or every open file with Ctrl/⌘ + Shift + F. Match case, whole words or regular expressions, click a result to jump to it, and replace across files with one undo.

Line and paragraph tools

Keep or remove lines containing text or a regex, sort (F9), reverse, shuffle and de-duplicate lines, hard-wrap paragraphs at 72 or 80 columns (Alt + Q) or unwrap them, number lines, join and duplicate lines, and convert case.

File history

Earlier versions of every file are kept in your browser: every few minutes while you edit, each time you save, and before a file is reloaded or restored. Restore one, open it in a new tab, or copy it.

Encodings and line endings

Files are read as UTF-8, UTF-16 or Windows-1252 automatically, including byte-order marks, and saved in the same encoding and LF or CRLF line endings unless you choose another in the status bar.

Save back to disk

In Chrome and Edge, Ctrl/⌘ + S writes straight to the original file, even after a reload. Other browsers download it. Save All, Save As, Reload from Disk, Print and a ZIP of every file are in the File menu.

Comfortable writing

Spell check (F6), word wrap, zoom, a live word, character and line count, five themes including Monokai and Solarized Light, and a full-screen distraction-free mode (Shift + F11).

Private by design

Text is edited and stored only on your device and is never uploaded. Share links carry the text inside the link itself. Clear everything saved in this browser from the Help menu at any time.

How to edit two files side by side

Select a layout with the buttons in the editor's title bar or from View in the menu bar: two columns (Alt + Shift + 2), three columns (Alt + Shift + 3), two rows (Alt + Shift + 8) or a grid of four (Alt + Shift + 5). Each pane has its own tabs. Drag a tab onto another pane to move it there, or right-click a tab and choose Open in Next Pane Too to show one file in two places; edits in one pane appear in the other immediately.

Drag the divider between panes to resize them, or focus it and use the arrow keys. Double-click a divider to make the panes equal again. When you go back to a single layout, files from the closed panes move into the remaining one, so nothing is closed by accident.

  • The pane with keyboard focus has a coloured line on its active tab; commands and shortcuts act on that pane.
  • On a phone the panes stack vertically so each stays readable.
  • Press Ctrl/⌘ + K and then a number to move focus to pane 1, 2, 3 or 4.

Open a folder and edit files on your computer

Choose File → Open Folder (Ctrl/⌘ + K, then Ctrl/⌘ + O) and pick a folder, such as a folder of notes, a website or a project. It appears as a tree at the top of the sidebar; click a file to open it in a tab, and use the arrow keys to move through the tree. Folders such as .git and node_modules are hidden to keep the tree readable.

In Chrome and Edge the browser asks once whether the page may edit the folder. After you allow it, Ctrl/⌘ + S writes each file straight back to disk, Goto Anything (Ctrl/⌘ + P) searches every file in the folder, and the folder is remembered: after a reload, select Reconnect folder to continue. Firefox and Safari cannot write to folders, so they open a read-only copy and Save downloads the file instead.

  • Only the files you open are read; nothing in the folder is uploaded.
  • File → Reload from Disk replaces the editor's copy with the file on disk, keeping your edits in File History.
  • Close Folder removes it from the sidebar; files you opened from it stay open.

Find files, lines, headings and commands without the mouse

Goto Anything (Ctrl/⌘ + P, or the search box in the title bar) lists your open files and, when a folder is open, every file in it. It matches letters in order, so "rdme" finds README.md. Add a colon and a line number, such as notes:42, to open the file at that line. Type a colon on its own to go to a line in the current file, @ to jump to a heading or function, or > to search commands.

Go to Symbol (Ctrl/⌘ + R) and the sidebar's Outline tab list Markdown headings, and classes, functions and methods in JavaScript, TypeScript, Python, Java, C#, Go, Rust, PHP, shell scripts and INI files. The Command Palette (Ctrl/⌘ + Shift + P or F1) searches every command in the menus and shows each shortcut, so you learn them as you go.

todo        open todo.txt (fuzzy match)
notes:42    open notes.md at line 42
:120        go to line 120 in the current file
@install    jump to the "Install" heading
>sort       run a command, such as Sort Lines
Goto Anything queries and what they do.

Write Markdown with a live preview

Open or create a .md file and press Ctrl/⌘ + K and then V, or choose View → Markdown / HTML Preview. The formatted page appears beside the text (below it on narrow screens) and updates as you type. It supports GitHub-flavoured Markdown: headings, lists, task lists, tables, links, images, quotes and fenced code blocks. Scrolling the editor scrolls the preview to the same place.

HTML files preview the same way, which is handy for checking an email template or a simple page. The preview is sandboxed: scripts in the file never run, and links open in a new tab.

  • Alt + Q re-wraps the current paragraph at 80 columns (or the ruler), keeping list bullets and > quote markers; Text → Unwrap Paragraphs joins it back into one line.
  • The Outline tab doubles as a table of contents for long documents.
  • Turn on spell check with F6 while writing prose.

Edit many lines at once

Multiple cursors turn repetitive edits into one. Select a word and press Ctrl/⌘ + D to add the next occurrence to the selection, again and again, then type to change them all. Alt + F3 (Ctrl + ⌘ + G on a Mac) selects every occurrence at once.

To edit the start or end of many lines, select the lines and press Ctrl/⌘ + Shift + L to split the selection into one cursor per line, then press Home or End. Holding Alt while you drag makes a rectangular column selection, which is handy for aligned data and log files. To work on only some lines, use Text → Keep Lines Containing or Remove Lines Containing with plain text or a /regular expression/.

  • Ctrl/⌘ + Shift + D duplicates the current line; Alt + ↑ / ↓ moves it.
  • Ctrl/⌘ + J joins the selected lines into one, trimming indentation.
  • Ctrl/⌘ + L selects the whole line; press it again to extend the selection down.
  • Press Esc to go back to a single cursor.

How saving and file history work

There are two kinds of saving. Every change is stored automatically in your browser's IndexedDB storage about half a second after you stop typing, along with your tabs, layout and recently closed files, so you can close the page and come back later. File → File History also keeps earlier versions of each file: one every few minutes while you edit, one each time you save, and one before a file is reloaded or restored. Up to 30 versions per file are kept; Restore brings one back as a single undoable change.

To keep a file outside the browser, press Ctrl/⌘ + S. In Chrome and Edge the editor asks where to save the first time, then saves to that same file on later presses, even after a reload; files you opened from disk save straight back to the original. Other browsers download the file instead. The dot on a tab disappears once the file is saved to your device.

  • Save All (Ctrl/⌘ + Alt + S) saves every file with a dot; new files are downloaded together as one ZIP.
  • Encodings and line endings are kept: a Windows-1252 or UTF-16 file is saved the same way, and CRLF files stay CRLF. Change either in the status bar.
  • Turn off Help → Remember Files in This Browser on a shared computer; that also deletes the saved files and history.

How to use it

  1. Start typing in the untitled file, or open files (Ctrl/⌘ + O), a whole folder (Ctrl/⌘ + K, Ctrl/⌘ + O) or drop files onto the editor. Each file opens in its own tab.
  2. Split the view with the layout buttons or Alt + Shift + 2, press Ctrl/⌘ + P to switch files, Ctrl/⌘ + R to jump to a heading or function, and Ctrl/⌘ + Shift + P to run any command.
  3. Work is autosaved in this browser with a File History of earlier versions. Press Ctrl/⌘ + S to save to your device; files opened from disk in Chrome or Edge are saved back to the same file.

Common uses

  • Keep notes, drafts and to-do lists in a private notepad that is still there next time, with earlier versions you can restore
  • Edit a folder of Markdown notes, a static website or config files side by side, with a live preview and saving straight back to disk
  • Clean up lists, CSV exports and logs: keep or remove matching lines, sort, de-duplicate, re-wrap paragraphs, or edit many lines at once with multiple cursors

Common questions

Is this an online version of Sublime Text?

No. It is an independent, free text editor that works in your browser and follows many of the same ideas and shortcuts as desktop editors such as Sublime Text, VS Code and Notepad++: tabs, split view, Goto Anything, Go to Symbol, a Command Palette, a minimap and multiple cursors. It is not affiliated with any of them.

Where are my files saved?

In your browser on this device, using IndexedDB storage. They are never uploaded to TheVanTool or anywhere else. Press Ctrl/⌘ + S to save a copy as a file on your computer or phone; in Chrome and Edge, files opened from disk are saved back to the original.

Will my text still be here if I close the tab?

Yes. Open files, tabs, the layout and the file history are restored the next time you open the page in the same browser, unless you turned off Remember Files in This Browser, cleared your browsing data or used a private window.

Can I get back an earlier version of a file?

Yes. File → File History lists earlier versions kept in this browser, with when each was saved and how many lines changed since. Restore replaces the text as one undoable step, or open the old version in a new tab to compare.

Can I open and edit a whole folder?

Yes. File → Open Folder shows it as a tree in the sidebar. In Chrome and Edge, edits are saved straight back into the folder and the folder is remembered after a reload. Firefox and Safari open a read-only copy, so Save downloads files instead.

Can I preview Markdown as I type?

Yes. Press Ctrl/⌘ + K and then V in a Markdown or HTML file to show a live preview beside the editor. It supports tables, task lists and code blocks, scrolls with the editor, and never runs scripts from the file.

Can I open more than one file at a time?

Yes. Open up to 50 files in tabs, split the screen into as many as four panes, and drag tabs between them. Goto Anything (Ctrl/⌘ + P) switches between files quickly.

Why don't Ctrl + N, Ctrl + W and Ctrl + Tab work?

Browsers reserve those shortcuts for their own windows and tabs, so a web page cannot use them. The editor uses Alt + N for a new file, Alt + W to close a file and Alt + Page Up / Page Down to switch files instead. Every command is also in the menus and the Command Palette.

Which file types and encodings can I edit?

Any plain-text file up to 5 MB, such as .txt, .md, .csv, .log, .json, .yaml, .xml, .html, .css, .js, .py, .sql and .env. UTF-8, UTF-8 with BOM, UTF-16 and Windows-1252 files are detected automatically and saved in the same encoding. Binary files such as images, PDFs and Word documents are not opened.

How do I share text with someone?

Choose File → Share Link to create a link, QR code or share-sheet entry for the current file or every open file. The text travels inside the link itself, after the #, which browsers never send to a server. Opening the link adds the files as new tabs without replacing the recipient's own.

Does it work offline and on a phone?

Once the page has loaded, editing and autosave work without a connection. On phones the menu bar scrolls sideways, split panes stack vertically and the sidebar opens as a drawer.

How is this different from the online code editor?

The online code editor focuses on writing code, with Prettier formatting and syntax error checks. The text editor focuses on working with many files: folders, split view, Goto Anything, Go to Symbol, a Command Palette, Markdown preview, minimap, bookmarks, find in files, file history and saving back to disk. Both keep your text private in the browser.

Can’t find the tool you need?

Tell us what you’d like it to do. We’ll review your suggestion for a future tool.

Suggest a toolOpens your email app. You can also write to [email protected].