// admin tools · 12
Case shifter
Paste identifiers or prose and get fifteen case styles at once. Smart splitting understands XMLHttpRequest, mixed separators and numbers.
// runs locally — nothing is uploaded
words (line 1):
stats
output
How it works
What it does
The case converter rewrites a name or a sentence in fifteen styles at once: camelCase, PascalCase, snake_case, SCREAMING_SNAKE, kebab-case, Train-Case, dot.case, path/case, Title Case, Sentence case, lower, UPPER, a URL slug, aLtErNaTiNg and sWAP cASE. Every result has its own copy button. A stats panel counts characters, words, sentences, lines and UTF-8 bytes, and estimates reading time. It all runs locally in your browser.
How to use it
- Paste text into the input. Results update as you type.
- Leave line by line on to convert a list of identifiers, one per line. Turn it off to treat the whole input as one phrase.
- Turn on split numbers if digits should become their own word (
sha256Hash→sha_256_hash). By default they stay attached (sha256_hash). - Press copy on the style you need.
How the word splitter works
Every identifier style depends on finding the words first. The splitter breaks on any run of characters that are not letters or digits (spaces, _, -, ., / and so on), then looks for case boundaries inside each chunk:
- lower → Upper
userName→ user · Name- ACRONYM → Word
XMLHttpRequest→ XML · Http · Request. A run of capitals ends one letter before a capital that starts a lower-case word.- digits
getHTTPResponse2Code→ get · HTTP · Response2 · Code. Digits join the word before them, and a lower-case run straight after digits joins too (2fa).- apostrophes
don'tbecomesdontrather than two words.
Letters are matched with Unicode property classes, so ÉcoleNormale splits correctly. Slugs decompose accents with Unicode NFD, drop the combining marks and transliterate characters that do not decompose (ß → ss, ø → o, ł → l, & → and).
Title and sentence case rules
Title Case capitalises every word except short articles, conjunctions and prepositions (a, an, the, and, but, or, of, in, on, to, via and similar), unless they come first, last or straight after a colon. Words with deliberate capitals, such as NASA or iPhone, are left alone. Hyphenated words are handled part by part: State-of-the-Art. Style guides disagree on the details (AP capitalises words of four letters or more, Chicago lowers all prepositions), so check against your house style. Sentence case lowers everything except acronyms and the pronoun I, then capitalises the first letter of each sentence. Text typed entirely in capitals is lowered first.
FAQ
Why is XMLHttpRequest → xmlHttpRequest and not XMLHttpRequest?
camelCase and PascalCase rebuild the name from its words, so acronyms become ordinary words (Xml). That matches common style guides, including Google's Java and JavaScript guides. If you want to keep the acronym, edit that one part by hand.
How are characters and bytes counted?
Characters are user-perceived characters (grapheme clusters, via Intl.Segmenter), so an emoji with a skin-tone modifier counts as one. When that differs from JavaScript's UTF-16 length, both are shown. Bytes are the UTF-8 encoded length, which is what most databases and APIs limit.
How is reading time estimated?
Word count divided by 230 words per minute, a typical figure for adults reading on screen. Technical text is usually read more slowly, so treat it as a rough guide.
Is my text sent anywhere?
No. Conversion happens in JavaScript on this page. Nothing is uploaded or stored.