Skip to main content

Text Tools: Case, Lines, Counter & Escape

Conversions

Press Convert or Ctrl/⌘+Enter to see the result.

Each line converts on its own. Lines without spaces are read as identifiers (userId → User Id).

Lines: 0
Everything is processed in your browser. Nothing is uploaded.

About this tool: Text Tools: Case, Lines, Counter & Escape

A set of small text utilities: convert between camelCase, snake_case, kebab-case, Title Case and other styles, build URL slugs, sort and de-duplicate lines, and count words, characters, graphemes and bytes. Strings can be escaped for JSON, JavaScript, SQL, regex, CSV or shell, and a lorem ipsum generator produces placeholder text.

Common uses

  • Renaming identifiers when moving between code styles
  • Checking that copy fits a character limit
  • Escaping a string before pasting it into a command or query

Frequently asked questions

Why do characters and bytes differ?
Characters outside basic ASCII take several bytes in UTF-8. The counter reports characters, graphemes (what a reader sees as one symbol) and bytes separately.
What does sorting and de-duplicating lines do?
It reorders the lines alphabetically or numerically and removes repeats, which helps with lists of IDs, hosts or dependencies.
Is my text stored anywhere?
It is kept in your browser local storage so you can return to it, never uploaded, and you can clear it from your browser site data.