String Utilities provides a collection of common string manipulation operations in one place: reverse, count characters/words/lines, trim whitespace, remove duplicates, sort lines, extract URLs, strip HTML tags, convert between casing styles (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case), and run regex-enabled find and replace. Eliminates the need to write one-off scripts for routine text processing tasks.
How it Works
1Paste your text into the input field.
2Select the operation you want to apply from the toolbar — including case converters and find & replace.
3Toggle the Regex switch to treat the find pattern as a regular expression (with $1, $2… back-references in the replacement).
4The result appears immediately in the output panel.
5Chain operations by using the output as the next input.
Frequently Asked Questions
Can I apply multiple operations in sequence?
Yes. Apply the first operation, then copy the output back to the input and apply the next operation. The tool processes one operation at a time to keep the result predictable.
What does 'Remove duplicate lines' do?
It removes any line that appears more than once, keeping only the first occurrence. Case sensitivity can usually be toggled — 'Apple' and 'apple' can be treated as duplicates or distinct depending on your setting.
Can I count specific character frequencies?
The character count operation returns the total character count. For frequency analysis (how many times each letter appears), use the dedicated character frequency mode if available, or export to a spreadsheet tool.
Does 'Strip HTML tags' make it safe to render in a browser?
Stripping tags removes markup but does not sanitise HTML entities or JavaScript event handlers embedded in attribute values. For truly safe rendering in a browser, use a dedicated HTML sanitisation library (DOMPurify) rather than simple tag stripping.
Which case conversions are supported?
camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and Title Case. The tokenizer accepts input in any of these forms (plus space-separated), so you can round-trip between styles — e.g. paste 'userID_v2' and convert it to 'user-id-v-2' or 'USER_ID_V_2'.
How does the Regex find & replace work?
Toggle the Regex switch next to Find & Replace. The pattern is compiled as a JavaScript RegExp with the global flag, so every match is replaced. Use $1, $2… in the replacement for capture-group back-references. Invalid patterns show an inline hint and disable the Replace All button — the literal (non-regex) mode is unchanged.