Compare two texts line by line or word by word and highlight differences.
Code & Text Formatting Tools
Readable code and clean text are easier to review, debug and share. These formatters pretty-print HTML, CSS, JavaScript, XML, YAML and Markdown with consistent indentation, and the matching minifiers strip everything a machine does not need.
The text tools cover the everyday tasks around code: comparing two versions line by line, switching identifiers between camelCase, snake_case, kebab-case and PascalCase, and counting words, characters and string lengths.
Tools in this category
Convert text between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case, PascalCase and more.
Convert any text or identifier to camelCase.
Convert any text or identifier to snake_case.
Convert any text or identifier to kebab-case (URL slugs, CSS classes).
Convert any text or identifier to PascalCase (class and type names).
Measure string length in characters, code points, UTF-8 bytes and UTF-16 units.
Count words, sentences, paragraphs, reading time and keyword frequency.
Count characters with and without spaces, lines, and check limits for tweets, SMS and meta descriptions.
Pretty-print XML with configurable indentation, and minify it back.
Check XML well-formedness and report errors with line and column.
Beautify JavaScript and TypeScript code with consistent indentation and spacing.
Minify JavaScript by safely removing comments and whitespace.
Beautify HTML with proper indentation of nested elements, preserving pre, script and style blocks.
Minify HTML by collapsing whitespace and removing comments.
Beautify CSS with one declaration per line, indentation and sorted output options.
Minify CSS by removing comments, whitespace and redundant semicolons.
Normalise Markdown formatting (headings, lists, tables, emphasis) and preview the rendered result.
Format and validate YAML with consistent indentation and quoting.