Skip to main content

Text Scratchpad

A scratchpad for text, with tools to change case, sort, dedupe, trim, find and replace, and pull out emails or links.

Scratchpad text

0 words0 characters0 lines

Tools

Case

Lines

Clean up

Find and replace

Match

Extract

Runs in your browser; nothing you enter leaves this page.

How it works

Every button rewrites the whole text

Paste or type into the pad, then press a tool. Case tools change letters (Title Case capitalises the first letter of each word, Sentence case the first letter after a full stop, question or exclamation mark). Line tools treat each line as one item: sort A–Z or Z–A in your browser's language order, sort by length, reverse, shuffle, remove duplicate lines, or add and remove numbers such as “1.” or “2)”.

Clean-up tools trim spaces at the ends of lines, remove empty lines, squeeze runs of spaces into one, join everything onto one line, or wrap words at 80 or 120 characters. URL encode and decode turn characters such as / and spaces into %2F and %20 and back.

Each change is a single step of your browser's undo, so Ctrl+Z (Cmd+Z on a Mac) in the pad brings the previous text back.

Find, replace and extract

Matches are highlighted in the pad as you type. Exact text is case-sensitive; Regex uses JavaScript regular expressions, so $1 in the replacement inserts the first group. Replace first changes the first match only.

Extract lists unique emails, web links (http and https) or numbers in the order they first appear. The list shows the first 50; Copy all copies every one, one per line.

camelCase: “xin chào bạn” → xinChàoBạn · snake_case → xin_chào_bạn · kebab-case → xin-chào-bạn

Your draft is kept

The pad saves to this browser's local storage a second after you stop typing, and comes back when you return to the page. Clear empties the pad and the saved copy.

More tools

All 238 tools