Skip to text editor
Text Repeater

Online Text Editor

Write and edit plain text in your browser. Open and download files, find and replace, change case, and clean up lines. Nothing is uploaded, and your draft can wait for you on this device.

Transform

Change case

Lines

Applies to the selection, or to all text when nothing is selected.

Ln 1, Col 10 characters0 words0 lines

Features

Everything a plain text editor needs

A quick notepad when you need one, with the tools that make cleaning up text fast.

Open and download files

Open .txt, .md, .csv, .json, code, and other plain text files up to 5 MB, or drop one onto the editor. Download saves your work under the file name you choose.

Undo every step

Typing, pasting, find and replace, and every transform can be undone and redone, step by step, with the buttons or the usual shortcuts.

Find and replace

Search with match case, whole words, or regular expressions. Every match is highlighted, and you can replace them one at a time or all at once.

Change case and clean up lines

Switch to UPPERCASE, lowercase, Title Case, or Sentence case. Remove extra spaces, empty lines, or duplicates, and sort or reverse lines.

A draft that waits for you

With Keep a draft in this browser turned on, your text and file name are saved on this device as you type, and they're back when you return.

Comfortable to write in

Word wrap, a monospace font, text size, spell check, Tab indentation, and full-screen mode, with live line, column, word, and character counts.

Keyboard shortcuts

Work without reaching for the mouse

The shortcuts match the ones in desktop editors. Every action is also on the toolbar, so you can do the same on a phone or tablet.

Find and replace, transforms, and New all go into the undo history, so a mistake is one Undo away.

KeysAction
Ctrl+S (⌘S on Mac)Download the text as a file
Ctrl+O (⌘O)Open a text file
Ctrl+F (⌘F)Find, while the editor has focus
Ctrl+HFind and replace, with the cursor in the Replace box
Enter / Shift+EnterNext or previous match, in the Find box (F3 and Shift+F3 also work)
Enter in ReplaceReplace the selected match and move to the next one
Ctrl+Enter in ReplaceReplace all matches
Ctrl+Z (⌘Z)Undo
Ctrl+Y or Ctrl+Shift+Z (⌘⇧Z)Redo
Tab / Shift+TabInsert a tab, or indent and outdent the selected lines
Esc, then TabMove focus out of the editor instead of inserting a tab
EscClose find and replace, or leave full screen

Where your text is kept

The editor runs entirely in your browser. Your text is never uploaded. While Keep a draft in this browser is on, the text and file name are saved in this browser's local storage on your device, so they come back when you return. Turn the option off to delete the draft right away. Clearing your browser's site data also removes it.

On a shared or public computer, turn the draft off and download your file before you leave. The privacy policy has the details.

About the online text editor

A plain text editor in your browser, with find and replace

How to open and save files, find and replace with regular expressions, clean up lines, and keep a draft, with no upload and no sign-up.

The Online Text Editor lets you write and edit plain text without installing anything. Type or paste into the editor at the top of this page, open a .txt file from your computer, and download your work as a file when you're done. Find and replace, case changes, line sorting, and an undo history are built in. It's free, and your text never leaves your browser.

Not every job needs a word processor. Cleaning up a list, fixing a settings file, or tidying text copied from a website is quicker in a plain text editor, where what you see is exactly what gets saved. This one works the same on a computer, a Chromebook, or a phone, so you can edit a txt file online wherever you are.

Open, edit, and download text files

Select Open or press Ctrl+O (⌘O on a Mac) to open a plain text file, or drop it onto the editor. It reads .txt, .md, .csv, .json, .html, source code, and other plain text files up to 5 MB, as UTF-8. Word documents and PDFs aren't plain text, so copy their text and paste it in instead.

When you're done, select Download or press Ctrl+S (⌘S). The text is saved as a UTF-8 file under the name in the File name box, so change untitled.txt to something like notes.md or list.csv first. New starts an empty document, and like every other change, it can be undone.

Find and replace, with or without regular expressions

Press Ctrl+F (⌘F) or select Find and replace to open the search bar. Every match is highlighted, the counter shows where you are, such as 3 of 12, and Enter and Shift+Enter jump to the next and previous match. Type a replacement, then select Replace for one match or Replace all for every one. In very long files with more than 100,000 matches, the counter shows the total as 100,000+.

Three switches change how matching works:

  • Match case: Apple no longer matches apple.
  • Match whole word: cat no longer matches inside category.
  • Use regular expression: the search becomes a pattern. ^ and $ match the start and end of each line, and the replacement can use $1 or $<name> for groups and $& for the whole match.

For example, with regular expressions on, find ^ and replace it with - to put a dash at the start of every line, or find [ \t]+$ and replace it with nothing to delete spaces at the ends of lines.

Change case and clean up lines

Open Transform to change the text in one step. Each tool works on the selection, or on all the text when nothing is selected. Line tools always work on whole lines, so a selection that starts mid-line covers that whole line:

  • Change case: UPPERCASE, lowercase, Title Case, or Sentence case.
  • Remove extra spaces: shortens runs of spaces and tabs to one space and trims the start and end of each line.
  • Remove empty lines: deletes blank lines, including lines that only contain spaces.
  • Remove duplicate lines: keeps the first copy of each line and deletes the repeats.
  • Sort lines: A to Z or Z to A, in natural order, so item 2 comes before item 10 and capitals don't change the order. Reverse line order flips the list.

They're handy for cleaning a mailing list, sorting names, removing duplicate keywords, or tidying text pasted from a PDF. For camelCase, snake_case, and other cases, use the case converter.

Undo every step

Typing, pasting, find and replace, every transform, and New all go into the undo history. Press Ctrl+Z (⌘Z) or select Undo to step back, and Ctrl+Y or Ctrl+Shift+Z (⌘⇧Z) to redo. A Replace all that went wrong is one Undo away, and pressing Undo again keeps walking back through your edits one step at a time.

A draft that waits for you

With Keep a draft in this browser turned on, your text and file name are saved on this device as you type, and the status shows Draft saved. Come back later and they're restored, with a short message to say so.

The draft is a backup, not a file, so download anything you want to keep. Turn the option off to delete the draft straight away, and keep it off on shared or public computers. Very long texts can be too large to keep as a draft; the status tells you when that happens.

Comfortable to write in, on any screen

The toolbar has Word wrap, a Monospace font for code and tables, smaller and larger text, Spell check, and Full screen, which hides everything but the editor until you press Esc. Tab inserts a tab or indents the selected lines, and Shift+Tab outdents them; press Esc, then Tab, to move focus out of the editor. The status bar shows the cursor's line and column, how much is selected, and live word and character counts.

On a phone or tablet, every action is on the toolbar, so you don't need shortcuts. On iPhone and iPad, downloaded files go to the Files app; on Android, to the Downloads folder.

Private by design

The editor runs entirely in your browser, so your text is never uploaded to a server, and opening a file only reads it on your device. Only the optional draft is stored, in this browser's local storage on your device, and clearing your browser's site data removes it as well. The privacy policy has the details.

More tools for plain text

Need many quick notes rather than one file? The online notepad keeps a list of notes that save on their own. To print or share a clean document, paste your text into the text to PDF converter, and to repeat a line many times, use the text repeater. Then go back to the editor and keep writing.

Editor questions

Online text editor FAQ

Answers about cost, privacy, files, saving, regular expressions, and phones.

Is this online text editor free?

Yes. It's free, needs no account, and has nothing to install. It works in any modern browser on Windows, Mac, Chromebook, Linux, iPhone, iPad, and Android.

Is my text uploaded anywhere?

No. Everything you type stays on your device and is never sent to a server. If Keep a draft in this browser is turned on, your text and file name are saved in this browser's local storage so they're still there next time. Turn it off to delete the draft, and turn it off on shared computers.

What files can I open?

Plain text files up to 5 MB, such as .txt, .md, .csv, .json, .html, and source code. Files are read as UTF-8. Word documents, PDFs, and other formatted files aren't plain text, so they can't be opened here.

How do I save my work?

Select Download or press Ctrl+S (⌘S on a Mac). The text is saved as a UTF-8 file with the name in the file name box, in your browser's usual downloads folder. The draft kept in your browser is a backup, not a file.

Can I use regular expressions in find and replace?

Yes. Turn on the .* button. ^ and $ match the start and end of each line, and the replacement can use $1 or $<name> for groups and $& for the whole match. For example, find ^ and replace with - to put a dash at the start of every line.

Can I format text with bold, fonts, or colours?

No. This is a plain text editor, so it saves exactly the characters you type with no formatting. That keeps files small and readable in any app. The font and text size settings only change how the text looks while you edit.

Does it work on a phone?

Yes. Every tool is on the toolbar, so you don't need keyboard shortcuts. On iPhone and iPad, downloaded files go to the Files app; on Android, to the Downloads folder.

Need the same text many times?

The text repeater copies any text, word, or emoji up to 100,000 times, with new lines, spaces, commas, or numbering between the copies. Paste the result back here to keep editing.