Text Tools
String Utilities
Sixteen everyday text operations in one tool — case conversion, line sorting and deduping, whitespace cleanup, counts.
In short
All-in-one string utility: convert case (camelCase, snake_case, Title Case), sort and dedupe lines, trim whitespace, count words — free, in-browser.
By NaveenKumar T · Updated
Learn: Regular Expressions Explained: A Practical Cheat Sheet With Tested Examples
- 8 case conversions
- Sort & dedupe lines
- Whitespace cleanup
Runs entirely in your browser — nothing you paste or open here is uploaded, logged, or stored.How we handle data →
Example
String Utility: input and output
A short paragraph run through Count chars / words / lines — the operation that turns free text into the four numbers people actually ask for.
NV Toolkit ships over 150 free developer tools.
Every tool runs entirely in your browser — nothing
is uploaded, logged, or sent to a server.
Paste your data, get your result, close the tab.Characters : 189
Words : 34
Lines : 4
Bytes(UTF8): 191The byte count (191) runs 2 higher than the character count (189) — the em dash on line two is one character but three UTF-8 bytes, the kind of gap that matters when a field has a byte-length limit.
Learn more
One tool for the text chores
Developer work is full of thirty-second text jobs: a constant list that needs SCREAMING_SNAKE_CASE, a log paste with ragged whitespace, a column of values that needs deduping before it becomes a SQL IN clause. Each is trivial; switching tools for each is the real cost. This page collects the sixteen most common operations behind one dropdown.
The case converters share a smart tokenizer (camel humps, underscores, hyphens and spaces all count as boundaries), the line tools are Unicode-aware, and the counter reports characters, words, lines, and UTF-8 bytes — the four numbers people actually ask for.
Which operation do I want?
The sixteen operations fall into three families. The case converters rewrite word boundaries: UPPERCASE and lowercase are literal, Title Case and Sentence case are for prose, and camelCase, PascalCase, snake_case and kebab-case are the identifier styles you move between when a column list becomes a struct, or a struct becomes a JSON payload. Because they share one tokenizer, `userAccountID`, `user_account_id` and `User Account Id` all resolve to the same three words before being re-joined in the target style — which is the part hand-rolled regexes get wrong.
The line operations work on the document as a list: sort A→Z or Z→A, reverse the characters, remove duplicate lines, trim each line, remove line breaks entirely, or collapse runs of extra spaces. These are the ones that turn a ragged copy-paste into something you can hand to a query or a config file, and they compose — trim first, then dedupe, then sort, and a messy paste becomes a clean list in three clicks. The counter is the third family on its own: characters, words, lines and UTF-8 bytes, reported together because the interesting question is usually the gap between two of them. A string of 189 characters that measures 191 bytes contains something non-ASCII, and that is exactly the kind of surprise that breaks a field with a byte-length limit.
For jobs one step larger, the neighbours take over. Comparing two lists rather than cleaning one is Text Diff; pulling values out of unstructured text is the Regex Tester; turning a Markdown block into HTML is Markdown to HTML; and making sense of a bare timestamp in a log line is the Epoch Converter.
Help
Frequently asked questions
Everything you need to know about the String Utility.
01How do I use the string utility?
Paste your text, pick an operation from the dropdown — UPPERCASE through Remove duplicate lines — and press Transform. The result re-runs automatically whenever you change the operation, so you can chain views quickly.
02How do the programming case conversions split words?
camelCase, PascalCase, snake_case and kebab-case all share one tokenizer: existing camel humps, underscores, hyphens and spaces are recognized as word boundaries, so 'userAccountID', 'user_account_id' and 'User Account Id' all convert consistently to any target case.
03Can I sort and dedupe a large list of lines?
Yes — Sort lines (A→Z or Z→A) and Remove duplicate lines handle tens of thousands of lines instantly. Combine with Trim each line first when the list comes from copy-paste with ragged indentation.
Keep working
Related tools
Text Diff
Text Tools
Markdown to HTML
Text Tools
Epoch Converter
Text Tools
URL Encode / Decode
Percent-encoding both ways — make any text safe in a URL, or turn %20-soup back into readable text.
HTML Escape
Convert text to safe HTML entities and back — <, >, & and quotes handled, named and numeric entities decoded.
Cron Expression Generator
Five dropdowns in, plain English out — with the next ten run times in your local timezone so you ship the schedule you actually meant.
Learn the format