# Case converter

Paste text to get UPPERCASE, lowercase, Title Case and Sentence case (punctuation, line breaks, acronyms and links kept), and camelCase, PascalCase, snake_case and kebab-case names, one per line.

Page: https://toolkitnow.org/tools/case-converter/

Type or paste text or code names. Every case appears at once, each with its own Copy. The gray text is an example.

## Good to know

### Text cases

Only letters change case: spaces, punctuation and line breaks stay where they are, so a paragraph or a list keeps its shape. Title and Sentence case also leave alone acronyms and names with a capital inside (`NASA`, `iPhone`, `GitHub`), links, emails and file names (`example.com`, `Node.js`), and abbreviations with dots (`U.S.`, `e.g.`).

### Title Case

Every word starts with a capital except short ones in the middle: *a, an, the, and, but, or, nor, for, as, at, by, in, of, on, per, to, via, vs*. The first and last word, and the word after a colon, dash, full stop or opening bracket, are always capitalised; roman numerals become capitals (*Episode IV*). Three or more words in capitals in a row, or a whole line in capitals, count as shouting and are cased like the rest; one or two (`NASA`, `AWS EC2`) are kept as acronyms.

### Sentence case

A capital at the start of each sentence and each line (after a list marker such as `1.` or `a)`), and for *I*; everything else lower case. After *Mr.*, *vs.*, *etc.*, an initial, or a *?* or *!* inside quotes, the next word keeps the capital it was written with. Names such as *Paris* cannot be told from other words, so check them.

### Code names

Each line becomes one name. Spaces, underscores, hyphens, dots and case changes split words (`getHTTPResponse` is get, HTTP, Response), punctuation is dropped, and acronyms are written as words: `parseHtmlString`, `get_http_response`.

### From code to text

In Title and Sentence case, a line that is one `snake_case` or `camelCase` name is read as its words: `user_name` gives *User Name* (a brand written that way, such as `phpMyAdmin` alone on a line, is too). UPPERCASE and lowercase change only the letters (`max_retry_count` gives `MAX_RETRY_COUNT`).

### Open from a link

`?text=the%20return%20of%20the%20king` opens the page with that text.

Runs in the browser; nothing is uploaded. Part of toolkitnow.org.
