Text tools

Compare texts, test regular expressions, view CSV as a table, sort and dedupe lines, convert case, count words and preview Markdown in your browser.

Compare & search 2

Write & transform 5

Data 1

Comparing two versions

Text Diff compares an original and a changed text line by line and prints the result the way git diff does: lines removed marked with -, lines added with +, and a few unchanged lines around each change for context. Use it for two versions of a config file, a contract clause, or the output of a program before and after a change. If both sides are JSON, JSON Diff is the better choice: it ignores key order and reports each change by its path instead of by line.

Regular expressions

The Regex Tester runs a JavaScript regular expression against your text as you type, lists every match with its line, position and capture groups, and previews a replacement. It uses the same engine as your browser and Node.js, so a pattern that works here behaves the same in your code. Flags that JavaScript does not support are ignored and named in a warning, which saves time when a pattern was written for another language.

A pattern that looks harmless can take seconds or minutes on the wrong input, because of how backtracking works. The article on regex backtracking and ReDoS shows which shapes of pattern are dangerous and how to rewrite them; the tester runs the pattern in a background worker and stops it after 5 seconds, so the page never freezes.

Cleaning up lists and text

Line Tools sorts, removes duplicates, shuffles, numbers and counts lines. Natural sort puts v2 before v10, which plain alphabetical sort does not, and Ignore case and Trim change how lines are compared without changing what is printed. The Case Converter turns identifiers into camelCase, snake_case, kebab-case and the other common styles, one per line, so a list of column names can be converted in one step. The Word Counter gives words, characters, reading time and the most frequent words, and Lorem Ipsum produces placeholder text by paragraphs, sentences or words.

Markdown and CSV

Markdown to HTML converts GitHub Flavored Markdown, with tables and task lists, and shows both a rendered preview and the generated markup, each in its own tab. The CSV Viewer opens a CSV or TSV file as a table: it detects the delimiter from the first lines, ignores the byte order mark that Excel adds, and lets you treat the first row as a header or as data. It is a quick way to check a file before importing it, without opening a spreadsheet that may change the values on load. For converting the data rather than reading it, see CSV to JSON.

In-depth articles