Skip to main content
Premier SEO Services

Text tools

Online Text Editor

A plain-text workspace for cleaning up text: open a .txt file or paste, change case, trim, sort and dedupe lines, find and replace, compare two versions, then download the result.

  • Runs in your browser
  • Free, no sign-up
  • Unlimited use
  • Updated 30 September 2026

Online Text Editor

Paste your text — the result updates as you type

  • Plain text only: bold, fonts and images are not kept.
  • Files up to 5 MB; Compare handles up to about 2,000 changed lines at a time.

How to use the online text editor

  1. 1Paste text, or press Open file to load a .txt, .csv, .md or other plain-text file.
  2. 2Select part of the text (or nothing, for all of it) and press an operation such as Trim line ends, Sort A–Z or Remove duplicate lines.
  3. 3Press Undo (Ctrl+Z) to reverse any step; use Find & replace for word changes.
  4. 4Press Compare to see line differences against an earlier version, then Download with your File name.

Cleaning a list in four clicks

Input
Shopping list
  bananas  
apples

milk
Apples
bread
milk
Output
apples
Apples
bananas
bread
milk
Shopping list

Trim line ends, Remove empty lines, Remove duplicate lines, then Sort A–Z. Duplicate removal is case-sensitive, so “Apples” stays; sorting ignores case and puts numbers in numeric order.

Opening and saving .txt files

Open file reads a plain-text file from your device into the editor; nothing is uploaded. Text files of any extension work (.txt, .csv, .md, .log, .json, .srt, .html), up to 5 MB. Opening a file is an undoable step, so your previous text isn't lost. Download saves the text as UTF-8 with the name in File name (.txt is added if you leave out an extension); Ctrl+S inside the editor does the same. The text also survives a page reload in the same tab, and is cleared when the tab closes. For notes you want to keep between visits, use the online notepad.

Text operations: case, trim, sort, dedupe

Each button works on the selected text, or on everything when nothing is selected:

  • Case: UPPERCASE, lowercase, Title Case (small words such as “of” stay lowercase) and Sentence case.
  • Clean: Trim line ends removes spaces at the start and end of each line; Remove extra spaces also collapses runs of spaces and tabs; Remove empty lines; Tabs to spaces (4 spaces).
  • Lines: Sort A–Z and Z–A ignore case and sort numbers naturally (2 before 10); Remove duplicate lines keeps the first copy (exact, case-sensitive match); Reverse line order.

For more options, such as case-insensitive duplicates or sorting by length, use remove duplicate lines and sort lines alphabetically.

Comparing two versions

Press Compare, paste the earlier version into Original version, and the Differences panel lists every line: removed lines are marked − and added lines +, with a count of each. A changed line shows as one removed and one added line. The comparison uses the longest common subsequence of lines, the method behind the classic diff tool, after skipping the identical start and end. Copy editor text here saves a snapshot before you start editing, so you can review exactly what your changes did.

Keyboard shortcuts

ShortcutAction
Ctrl+Z (⌘Z)Undo, including operations and Replace all
Ctrl+Y or Ctrl+Shift+ZRedo
Ctrl+FOpen Find & replace
Enter / Shift+Enter in FindNext / previous match
Ctrl+SDownload
Esc in FindClose Find & replace

The editor keeps its own history of up to 100 steps, because the browser's built-in undo forgets changes made by buttons. Typing is grouped into word-sized steps.

Plain text vs rich text editors

Plain text is only characters and line breaks: no fonts, bold or images. That is what code, CSV files, subtitles, config files and text you paste into web forms need, and it is why this editor strips formatting when you paste from Word or a web page. To keep formatting and turn it into clean markup, use rich text to HTML instead.

Is my text private?

This tool runs entirely in your browser. Your text is not uploaded to our servers.

Questions about the online text editor

Can I open a .txt file from my computer?

Yes. Press Open file and choose it. The file is read in your browser and never uploaded.

Does the editor keep formatting?

No. It is a plain-text editor, so pasted bold, links and fonts become plain characters. That's deliberate: the output is clean text.

Can I undo a text operation?

Yes. Every operation, Replace all and file open is one step in the editor's history: press Undo or Ctrl+Z, and Redo to go forward again.

Is my text uploaded anywhere?

No. Editing happens in your browser. The text is kept in this tab's session storage so a reload doesn't lose it, and is deleted when you close the tab.

Last updated 30 September 2026Maintained by Premier SEO Services

Report a problem