String
Transform strings online: convert case (camelCase, snake_case), escape/unescape, trim, sort lines, and more. Free, instant, all processing in your browser.
A free online set of string utilities for transforming and analyzing text, all in your browser. Escape and unescape strings, convert between developer cases like camelCase and snake_case, trim and normalize whitespace, sort and de-duplicate lines in a single pass, and get a full character, word, line, and byte analysis of any block of text. It is the Swiss-army knife for the small text chores that come up constantly — cleaning a pasted list, reshaping identifiers to match a codebase convention, or checking how many UTF-8 bytes a string will take. No data leaves your device.
Common uses
- Convert a phrase between camelCase, snake_case, and other cases.
- Sort lines alphabetically and remove duplicate lines in one pass.
- Count characters, words, lines, and UTF-8 bytes of a block of text.
- Escape a string for safe inclusion in JSON or a URL.
- Trim and normalize messy whitespace from pasted content.
Frequently asked questions
What case conversions are available?
Common developer cases including camelCase, snake_case, and others, applied to the whole input.
What does the analyze view report?
Character count (with and without spaces), words, lines, UTF-8 byte size, Unicode code points, and whitespace characters.
Why do byte count and character count differ?
Many characters take more than one byte in UTF-8 (accented letters, emoji, non-Latin scripts), so a string’s byte size is often larger than its character count.
Can it remove duplicate lines while sorting?
Yes. You can sort lines and de-duplicate them in a single operation, which is handy for cleaning up pasted lists.
Is my text sent to a server?
No. All transformations and analysis run locally in your browser.
All processing is local — your data never leaves your browser.