FormatterHQ

String & Text Utilities

Clean, sort, count, transform and analyze plain text: case conversion, duplicate removal, word counts, find and replace, text cleanup and more.

Add Line Numbers Number every line of text: choose the start number, step, format (1. 1) 1:), zero padding, and whether empty lines get a number. Add Prefix and Suffix to Lines Add text to the start and end of every line at once: quote list items, add bullets, commas or HTML tags. Skip empty lines, trim spaces. Alphabetical Order Put a list into alphabetical order (A–Z or Z–A), optionally ignoring leading articles like "The". ASCII Art Text Generator (FIGlet) Turn text into large ASCII art banners with 30 FIGlet fonts. Wrap them as code comments for README files, CLIs and source headers. Atbash Cipher Encode and decode the Atbash cipher, which mirrors the alphabet (A↔Z, B↔Y). Running it twice returns the original text. Caesar Cipher Encoder / Decoder Encrypt and decrypt Caesar shift ciphers with any shift, or brute-force all 25 shifts with automatic English detection. Case Converter Convert text to UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case, PascalCase and more. CSV to Multi-line Data Converter Convert CSV to Multi-line Text online for free. Every value on its own line, record by record. Delimited Text Extractor Extract one or more columns from CSV, TSV, pipe or any delimited text by column number. Diff Checker - Compare Text Compare two texts side by side and highlight every added, removed and changed line and word. Free online diff checker. Email Address Validator Check email address syntax in bulk and flag typos in popular domains, disposable providers, role accounts and duplicates. Email Extractor Extract e-mail addresses from any text: remove duplicates, sort, lowercase, filter by domain and choose a separator. Shows a count. Flesch-Kincaid Grade Level Calculator Calculate the Flesch-Kincaid grade level and Flesch reading ease score of English text. Font Generator (Fancy Text) Type text and copy it in bold, italic, cursive, gothic, double-struck, bubble, wide and 20 more Unicode styles that paste anywhere. HTML Stripper Strip HTML tags from markup and keep only the readable text, with entities decoded. HTML to Text Converter Extract readable plain text from HTML: keeps paragraphs, headings, lists and tables, drops tags, scripts and styles. Image to ASCII Art Converter Turn any photo or logo into ASCII art. Choose the width and character set, preview it in colour and copy the text. Invisible Character Detector & Remover Find zero-width spaces, non-breaking spaces, BOMs, bidi overrides and other hidden Unicode characters — then remove or escape them. JSON Multiline String Converter Convert multi-line text into a valid JSON string with \n escapes, a JSON array of lines, or concatenated string literals. JSON Stringify Online Stringify JSON into an escaped string literal, exactly like JSON.stringify. Ready to embed JSON inside JSON, code or config values. JSON to String Converter Convert JSON to a single escaped string you can paste into code, databases or other JSON documents. Choose double, single or no quotes. JSON to Text Converter Convert JSON to Text online for free. Readable key: value output for reports and tickets. Letter Randomizer Scramble the letters inside words or across the whole text — great for word puzzles and anagrams. Morse Code Translator Translate text to Morse code and Morse code back to text in two linked boxes, one for each direction. Multiline to Single Line Join multiple lines into one line with a space, comma or custom separator, optionally quoting each item. NATO Phonetic Alphabet Translator Spell out text with the NATO phonetic alphabet (Alfa, Bravo, Charlie…) or turn code words back into text. Handles digits and symbols. Number Sorter Sort a list of numbers numerically in ascending or descending order, with optional de-duplication. Number to Words Converter Spell out numbers in English words — plain, currency or cheque style — up to 36 digits. Online Notepad A plain-text notepad that saves as you type in this browser. Word and line count, find and replace, open and download .txt files. Paragraph Counter Count paragraphs in any text (blocks separated by blank lines) plus words, sentences and characters. PDF Word Counter Count the words, characters, sentences and pages in a PDF, per page and in total, with reading time. Choose a page range. No upload. Regex Cheat Sheet Interactive regex cheat sheet: anchors, classes, quantifiers, groups, lookarounds, flags and Unicode, with clickable examples and a flavour table. Regex Escape Escape special characters so any text can be matched literally inside a regular expression in JavaScript, PCRE, Python or Java. Regex Explainer Break a regular expression into tokens and explain each part in plain English: groups, quantifiers, classes, anchors and lookarounds. Regex Patterns Library Copy-ready regex patterns for email, phone, URL, IP, dates, numbers, UUIDs, postal codes and passwords, each with examples and a live test box. Regex Tester Test JavaScript regular expressions live: highlight matches, inspect capture groups and named groups, try flags and preview replacements. Remove Accents Strip accents and diacritics from text (é → e, ñ → n, ß → ss) while keeping everything else. Remove Duplicate Lines Delete duplicate lines from a list while keeping the first occurrence and the original order. Remove Empty Lines Delete blank and whitespace-only lines from text, code or lists in one click. Remove Extra Spaces Collapse repeated spaces and tabs into one space and trim the start and end of every line. Remove Line Breaks Remove line breaks from text copied out of PDFs or e-mails, optionally keeping paragraph breaks. Remove Lines Containing Filter text by deleting (or keeping) every line that contains a word, phrase or regex. Remove Punctuation Remove all punctuation marks from text, optionally including symbols like $, + and ©. Remove Whitespace Strip all spaces, tabs and line breaks from text, or all whitespace except line breaks. Reverse String Reverse text by characters, words or lines, or flip the letters of each word individually. ROT13 Encoder / Decoder Encode or decode ROT13 text instantly. ROT13 shifts each letter 13 places, so the same operation hides and reveals spoilers. Sentence Counter Count the sentences in a text and list them one by one, together with word and character counts. SERP Snippet Preview & Meta Length Checker Check title tag and meta description length in pixels and characters and preview your Google search result on desktop and mobile. Shuffle Lines Randomly shuffle the order of lines in a list — for draws, playlists, quiz questions and test data. Small Text Generator Convert text into small caps, superscript or subscript Unicode letters you can copy and paste. Sort Text Lines Sort lines alphabetically, naturally, by length, in reverse or randomly — with optional de-duplication. String Builder Turn multi-line text into StringBuilder / string concatenation code for Java, C#, JavaScript, Python, PHP or Go. String Byte Size Counter Count how many bytes a string uses in UTF-8, UTF-16 and UTF-32, plus characters, code points and Base64/URL-encoded size. String to JSON Converter Convert an escaped JSON string back into formatted JSON. Handles quoted literals, backslash-escaped text and double-encoded JSON. String Utility Inspect a string: length, UTF-8 byte size, words, lines, plus uppercase, lowercase, reversed and trimmed versions. Text Cleaner Clean messy text: remove invisible characters, straighten smart quotes, collapse spaces and strip HTML. Text Formatter Clean up messy text: trim and collapse spaces, fix punctuation spacing, capitalize sentences, normalize quotes, blank lines and line endings. Text Minifier Compress plain text by collapsing whitespace and removing blank lines. Text Repeater Repeat a text or emoji up to 10,000 times, separated by new lines, spaces, commas or nothing. Text Replacer Find and replace text online with case-sensitive, whole-word and regular expression options. Text to Speech Read text aloud with the voices in your browser. Choose a voice and language, set speed, pitch and volume, and follow the highlighted words. Un-Google Link Remove Google redirect wrappers (google.com/url, AMP, image results) and tracking parameters to get the real destination URL. Unicode Character Inspector Inspect every character in a string: code point, category, script, UTF-8/UTF-16 bytes, HTML entity and JavaScript/CSS escapes. Upside Down Text Flip text upside down (ʇxǝʇ uʍop ǝpᴉsdn) using Unicode characters you can paste anywhere. URL Extractor Extract URLs and links from text or HTML, including href and src attributes. Remove duplicates, sort, keep only domains, and copy the list. URL Slug Generator Convert titles into clean, SEO-friendly URL slugs: lowercase, hyphens, accents transliterated, stop words and length limits. One per line. Vigenère Cipher Encrypt and decrypt text with the Vigenère cipher using a keyword. Keeps case, spaces and punctuation intact. Word Counter Count words, characters, sentences, paragraphs and lines, and estimate reading and speaking time. Word Frequency Counter Count how often each word appears in a text and rank them by frequency with percentages. Word Repeater Repeat one word or a short phrase N times with a space, comma, new line or no separator, for drills, filler text and length tests. Word Replacer Rename a word or name across a document with whole-word matching, optional case sensitivity and a count of replacements. Word Sorter Sort the words of a text alphabetically, by length or randomly, and output them on one line or one per line. Words to Number Converter Convert English number words like "two hundred forty-five" back into digits. XML to String Converter Convert XML to an escaped string literal for Java, C#, JavaScript or JSON. Minify first or keep lines as concatenated strings. XML to Text Converter Convert XML to Text online for free. Readable key: value output for reports and tickets.

Text tools for everyday cleanup and analysis

A surprising amount of work involves plain text: lists copied from spreadsheets, emails with broken line breaks, keyword lists full of duplicates, logs to filter and articles to count. These text tools each do one job quickly and predictably, and they can be chained: remove empty lines, then duplicates, then sort, and your messy list is ready.

Find the right text tool

  • Change case – the case converter switches between UPPER, lower, Title, sentence case and programming styles like camelCase and snake_case.
  • Clean up – remove duplicate lines, remove extra spaces, remove empty lines and remove line breaks each fix one common problem; the text formatter fixes spacing, punctuation and capitalization in one pass.
  • Sort and shuffle – sort text lines alphabetically, numerically or by length, or randomize order with shuffle lines.
  • Count and analyze – the word counter counts words, characters and reading time; word frequency, sentence and paragraph counters and a readability grade tool go deeper.
  • Find and replace – the text replacer supports plain text and regular expressions.
  • Convert – HTML to text extracts readable text from markup, and escaping tools prepare text for code.
  • Just for fun – upside-down text, small caps and letter randomizers.

Useful combinations

  • Cleaning an email list: trim spaces, convert to lowercase, remove empty lines, then remove duplicates.
  • Preparing keywords: remove punctuation and accents, deduplicate and sort alphabetically.
  • Fixing PDF text: join wrapped lines with the text formatter, collapse spaces and check the word count.
  • Comparing versions: clean both texts the same way, then compare them in the diff checker.

Who uses text tools?

Writers check word counts and readability, marketers clean keyword and email lists, developers prepare test data and reformat logs, teachers create randomized word lists, and data analysts tidy exported columns before loading them into a spreadsheet. The tools are deliberately simple, so anyone can use them without learning regular expressions or spreadsheet formulas.

Tips

  • Order matters: trimming and lowercasing before removing duplicates catches near-duplicates such as "Apple" and "apple ".
  • For large lists, sorting after deduplication makes the result easier to review.
  • Regular expressions are powerful for find and replace, but test them on a small sample first.
  • Your text is processed in the browser and is not stored or uploaded, which matters for customer lists and drafts.
  • Keep a copy of the original text until you are happy with the result; most cleanups cannot be undone automatically.

Frequently asked questions

How do I remove duplicate lines from a list?
Paste the list into the remove duplicate lines tool. For best results, trim spaces and normalize letter case first so near-identical entries are recognized as duplicates.
How are words counted?
Words are sequences of characters separated by spaces or line breaks. The word counter also reports characters with and without spaces, sentences, paragraphs and an estimated reading time.
Can I use regular expressions for find and replace?
Yes. The text replacer supports regular expressions, including capture groups in the replacement, as well as simple literal search.
Is my text stored anywhere?
No. The text tools run in your browser, and nothing you paste is saved on a server.