Capitalize Every Word
Capitalize Every Word replaces characters matching \b followed by a Unicode letter or number. Because JavaScript \b is based on transitions involving ASCII-style word characters rather than full Unicode word segmentation, some words beginning with characters such as î can be missed. The rest of each word is not lowercased, so existing capitals remain, and punctuation/word-boundary behavior is heuristic.
Runs locally — files stay on your deviceDoes this lowercase the rest of each word?
No. It only uppercases matched starting characters.
JavaScript word boundaries are not full Unicode segmentation
A Unicode letter class after an ASCII-oriented \b can fail at boundaries where both sides are considered nonword characters.
How it works
A global regex matches \b[Unicode letter or number] and uppercases that single character.
Key concepts
Interior remains
wORd becomes WORd.
Unicode boundary mismatch
A leading î may not be matched by \b.
When to use it
- Capitalize ASCII-leading words without changing interiors.
- Preserve existing internal capitals.
- Process simple Latin text.
When not to use it
- Do not rely on it for every Unicode word start.
- Do not expect title-style minor-word rules.
- Do not expect accidental internal capitals fixed.
Worked examples
ASCII
- Input
hello world- Expected output
Hello World
Common boundaries match.
Existing caps
- Input
hELLo- Expected output
HELLo
Interior is unchanged.
Romanian start
- Input
învăț- Expected output
May remain învăț
\b can miss the Unicode-leading word.
Common mistakes
Calling it title case
No lowercasing or style rules. Correction: Use Title Case Converter.
Assuming full Unicode
Boundary logic is narrower. Correction: Use Intl.Segmenter or Unicode word rules.
Expecting cleanup
Internal casing remains. Correction: Normalize case first if intended.
Best practices
- Test target scripts.
- Use for simple input only.
- Review non-ASCII word starts.
Related operations and differences
Sentence Case Converter
Choose Sentence Case Converter when you need to apply sentence-style capitalization.; use Capitalize Every Word specifically for capitalize words.
Add Prefix to Every Line
Choose Add Prefix to Every Line when you need to add the same prefix before every line.; use Capitalize Every Word specifically for capitalize words.
Add Suffix to Every Line
Choose Add Suffix to Every Line when you need to add the same suffix after every line.; use Capitalize Every Word specifically for capitalize words.
Extract Email Addresses
Choose Extract Email Addresses when you need to find unique email addresses in text.; use Capitalize Every Word specifically for capitalize words.
Extract URLs
Choose Extract URLs when you need to find unique HTTP and HTTPS links in text.; use Capitalize Every Word specifically for capitalize words.
Line Counter
Choose Line Counter when you need to count the number of text lines.; use Capitalize Every Word specifically for capitalize words.
Limitations and privacy
- One regex with ASCII-oriented \b; no full Unicode segmentation, lowercasing, minor-word rules, locale selector, name/acronym policy, or exception list.
Text is transformed locally in this browser and is not uploaded by the tool.
Frequently asked questions
Is the rest lowercased?
No.
Can Romanian word starts be missed?
Yes.
Are numbers matched?
A digit after a matched boundary can be processed but uppercasing has no effect.
Is this editorial title case?
No.