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

Compare two texts line by line or word by word and highlight differences.

Formatting

Convert text between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case, PascalCase and more.

Formatting

Convert any text or identifier to kebab-case (URL slugs, CSS classes).

Formatting

Measure string length in characters, code points, UTF-8 bytes and UTF-16 units.

Formatting

Count words, sentences, paragraphs, reading time and keyword frequency.

Formatting

Count characters with and without spaces, lines, and check limits for tweets, SMS and meta descriptions.

Formatting

Pretty-print XML with configurable indentation, and minify it back.

Formatting

Check XML well-formedness and report errors with line and column.

Formatting

Beautify JavaScript and TypeScript code with consistent indentation and spacing.

Formatting

Beautify HTML with proper indentation of nested elements, preserving pre, script and style blocks.

Formatting

Minify HTML by collapsing whitespace and removing comments.

Formatting

Beautify CSS with one declaration per line, indentation and sorted output options.

Formatting

Minify CSS by removing comments, whitespace and redundant semicolons.

Formatting

Normalise Markdown formatting (headings, lists, tables, emphasis) and preview the rendered result.

Formatting

Format and validate YAML with consistent indentation and quoting.

Formatting