Text Studio

Runs in your browser

Count characters and words, change case, sort and clean lines, compare two documents, preview Markdown safely, make slugs, extract emails and URLs, and generate placeholder text. Everything runs in your browser.

0 bytes · 0 lines Maximum 2 MB per document

Characters are counted as graphemes, so emoji and combined accents count once. Words, sentences and paragraphs use Intl.Segmenter where the browser provides it.

Result

No result yet

Ready

Paste text to begin, or load an example.

Your text stays here

Every operation runs in this browser tab. Nothing is uploaded, and the tool itself loads no third-party code.

Counting that fits the script

Grapheme and word segmentation means emoji, Arabic, Japanese and combined accents are counted the way readers see them, not as UTF-16 numbers.

Safe Markdown and regex

Markdown disables raw HTML. Regular expressions run in a worker with a hard time limit so a pathological pattern cannot lock the page.

Count what readers see

A JavaScript string counts UTF-16 code units, which is not the same as characters. A thumbs-up emoji with a skin-tone modifier (U+1F44D U+1F3FD) is one visible character, two code points and four UTF-16 units. Text Studio uses Intl.Segmenter for graphemes, words and sentences where the browser supports it, and reports code points and UTF-16 units separately so you can see the difference.

Reading time is calculated at 200 words per minute and is a rough guide, not a promise. Bytes are UTF-8, which is what a server or database usually stores.

Transform without surprises

Case conversion uses Unicode casing, so Cyrillic and Greek text changes correctly. Title case lowercases the rest of each word; sentence case lowercases everything and then capitalises the first letter. Programming cases split on separators and case boundaries, so XMLHttpRequest becomes xml_http_request.

Line tools keep your line order unless you ask for a sort or shuffle. Natural sorting compares numbers inside text, so file2 comes before file10. Deduplication always keeps the first occurrence, and shuffle uses crypto.getRandomValues rather than Math.random.

Worked example: lines file10.txt, file2.txt, file1.txt, file2.txt sorted naturally become file1.txt, file2.txt, file2.txt, file10.txt. Choosing “Remove duplicate lines” then leaves the first file2.txt in place.

Cleaning and invisible characters

Clean mode can collapse runs of spaces, trim each line, turn curly quotes into straight ones, normalise line endings and remove invisible formatting characters. It always reports zero-width spaces, soft hyphens, direction marks and similar characters by code point and name, because those are a common reason code or search fails mysteriously.

Slugs strip accents and punctuation and lower-case the result: Crème Brûlée & Café becomes creme-brulee-cafe. Letters from non-Latin scripts are kept rather than transliterated, so Arabic or Cyrillic text still produces a usable slug.

Compare, extract and preview

The diff mode compares two documents by line or by word. Line view shows numbered side-by-side rows and a unified patch; word view highlights the changed words inline. List compare treats each non-empty line as an item and shows what is only in A, only in B and in both, with an optional case-insensitive match.

Extract mode pulls email addresses, URLs and numbers out of your own text. It does not fetch a URL or check whether an address exists. Lorem ipsum is clearly labelled placeholder text and is never a substitute for a real article.

Why the Markdown preview is safe

Markdown is rendered with raw HTML disabled, so a pasted <script> or <img onerror=…> appears as text instead of running. Links are accepted only for http, https, mailto, fragments and relative paths; javascript: links are dropped. The HTML export contains the same sanitised output.

This does not make a pasted document trustworthy. The preview cannot tell you whether a link is honest or whether the text is accurate; it only prevents the document from executing code in this page.

Frequently asked questions

Is my text uploaded?

No. Every mode runs in a Web Worker in this tab, and the tool never sends your text to a server.

Why do character counts differ between tools?

Tools may count UTF-16 units, code points or visible graphemes. Text Studio shows all three so the difference is visible, and uses graphemes for the headline character count.

Does regex support lookbehind and named groups?

It uses the browser's JavaScript regular-expression engine, so support follows the browser. Modern Chrome, Firefox and Safari support named groups and lookbehind.

Is the lorem ipsum text real Latin?

It starts from the classic Lorem ipsum opening and then uses a fixed word list. It is placeholder text, not a quotation and not content to publish.

Can I compare more than two documents?

Not in one run. Compare A and B, copy the result, then compare that result with C if you need a three-way view.

Related tools and sources

For structured data, use JSON & Data Studio; for encoding and URL work, Encode & Decode; for hashes and keys, Hash & Encryption Studio.

Specifications and references: ECMA-402 Intl.Segmenter, Unicode Standard Annex #29 (text segmentation), the Markdown syntax reference, and the JavaScript RegExp specification. Behaviour checked in current Chromium on 28 November 2026.