How to change text case and copy the result
- Type or paste your text into Text to convert. The field takes about 1,000,000 characters. You can also click one of the Try an example buttons to see how the cases behave.
- Read the nine result cards below the input. They update as you type, so you don't need to press anything.
- Click Copy on a card to copy just that version. The button briefly shows a confirmation, then goes back to normal.
- If you need every version, click Copy all. You get nine lines, and each one starts with the name of the case, for example
snake_case: hello_world_from_mytoolkit. - Click Clear to empty the input before you paste the next piece of text.
The Characters counter shows the length of your input. A simple emoji such as 😀 counts as one character. Emoji with a skin tone, or joined emoji like a family, count as several.
Examples: caps-lock text, a book title and code identifiers
Here is text typed with caps lock on, converted to lowercase and Sentence case:
Input: I THINK I CAN. NEW LINE
lowercase: i think i can. new line
Sentence case: I think i can. New line
Sentence case capitalises the first letter after a full stop, but the second "I" stays lowercase. Fix it by hand.
Here is a book title in four of the nine cases:
Input: the lord of the rings: the return of the king
UPPERCASE: THE LORD OF THE RINGS: THE RETURN OF THE KING
Title Case: The Lord Of The Rings: The Return Of The King
Sentence case: The lord of the rings: the return of the king
kebab-case: the-lord-of-the-rings-the-return-of-the-king
This example renames an existing camelCase identifier. The acronym HTTP stays together as one word:
| Case | Output for parseHTTPResponse handler |
|---|---|
| camelCase | parseHttpResponseHandler |
| PascalCase | ParseHttpResponseHandler |
| snake_case | parse_http_response_handler |
| CONSTANT_CASE | PARSE_HTTP_RESPONSE_HANDLER |
Digits work inside words (user_id 2fa version2Update becomes userId2faVersion2Update). However, a capital letter that follows a digit starts a new word, so user2FA becomes user2_fa in snake_case and user2Fa in camelCase.
When each case is useful
- Fixing caps-lock text: paste a paragraph typed in capitals and copy the lowercase version. Then capitalise names and "I" yourself.
- Headings: Title Case gives you a first draft of a heading. If your style guide asks for it, lowercase the short words afterwards.
- Moving a name between languages: turn a JavaScript
camelCaseproperty into a Pythonsnake_casevariable, or a column name into aCONSTANT_CASEenvironment variable, without retyping it. - CSS classes and file names: kebab-case turns
Primary Button Largeintoprimary-button-large. - Naming tables: Copy all puts every variant in one block, which helps when you document an API field or agree on conventions with a team.
Limits and edge cases to know before you copy
Title Case capitalises every word, including "of", "the" and "and". It doesn't apply the AP, Chicago or APA rules for short words. For "The Lord of the Rings", correct those words after copying.
Title Case and Sentence case lowercase the whole text first, so acronyms and brand names lose their capitals: NASA launches API becomes Nasa Launches Api, and iPhone becomes Iphone. Sentence case only capitalises the very first letter and any letter that follows ., ! or ? plus a space. A line break without a full stop doesn't start a new sentence, a sentence that opens with a quotation mark stays lowercase, and names and the pronoun "I" in the middle of a sentence are lowercased. Proofread the result before you publish it.
UPPERCASE and lowercase use Unicode's standard case mapping, not rules for a particular language. Some letters change length: Straße becomes STRASSE. Turkish dotted and dotless i aren't converted the Turkish way.
The five programmer cases treat the whole input as a single name. Spaces, line breaks and punctuation all count as word breaks and are then removed, so first line and second line on two lines become first_line_second_line. Convert one identifier at a time.
The programmer cases keep accented letters (zażółć gęślą becomes zażółć-gęślą in kebab-case). If a name must be plain ASCII, run the text through Remove accents first. For URL slugs, use Slug generator. To rename an identifier everywhere in a block of code, use Find and Replace.