Loading…
Loading…
Find and replace text in bulk, with plain text or regular expressions, whole-word and case-sensitive matching, and capture groups like $1 in the replacement.
The result appears here as you type.
Anything from a paragraph to a log file.
Plain text is matched literally. Turn on Regular expression for patterns, and use $1, $2 or $<name> in the replacement to reuse captured groups. The sample swaps dates from YYYY-MM-DD to DD/MM/YYYY.
The summary shows how many replacements were made. An invalid pattern shows an error instead of wrong output.
JavaScript regular expressions with the Unicode flag: character classes, quantifiers, groups, named groups (?<name>...), lookarounds, and \p{L}-style Unicode properties. All matches are replaced, and ^ and $ match at the start and end of every line, as in code editors.
$1, $2, … insert what each group captured, $<name> inserts a named group, $& inserts the whole match, and $$ inserts a literal $. In plain-text mode, $ is always literal.
It only matches when the text isn't part of a longer word. "cat" matches in "the cat." but not in "catalog" or "cat_id". It works for accented and non-English letters too.
No. Everything runs in your browser, and nothing you paste is sent to a server or stored.
Text & code
Compare two texts or code files side by side, with changed words highlighted. Ignore whitespace or case, and export a unified .diff patch that git apply accepts.
Count
Count words, characters, sentences, paragraphs, and lines as you type, with reading and speaking time. Check text against X, SEO title, and meta description limits.
Case
Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and more, line by line.
Cleanup
Clean up messy text: remove extra spaces, blank lines, invisible characters, and HTML tags, straighten quotes, and rejoin hard-wrapped lines.
Lines
Delete repeated lines from a list and keep the original order. Choose case sensitivity, whether to ignore surrounding spaces, and whether to keep the first or last copy.
Lines
Delete blank lines from text, or collapse runs of blank lines down to one so paragraphs stay separated.