Skip to content
MyToolkit.pro

Text analysis

Case converter

See your text in all nine common letter cases at once — from everyday Title Case to programmer-friendly camelCase and snake_case — and copy any one with a single click. Your text stays in this browser.

Private by design: no text is uploaded or stored.

Private by design: no text is uploaded or stored.

Try an example

Result

All cases update as you type.

Characters: 0

UPPERCASE
lowercase
Title Case
Sentence case
camelCase
PascalCase
snake_case
kebab-case
CONSTANT_CASE

Which case should I use?

UPPERCASE and lowercase change every letter. Title Case capitalises each word; Sentence case only the start of each sentence. The programmer cases split your text into words first: camelCase joins them with the first word lowercase, PascalCase capitalises every word, snake_case joins with underscores, kebab-case with hyphens, and CONSTANT_CASE uppercases with underscores. Existing camelCase boundaries and accented letters are handled correctly.

How to change text case and copy the result

  1. 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.
  2. Read the nine result cards below the input. They update as you type, so you don't need to press anything.
  3. Click Copy on a card to copy just that version. The button briefly shows a confirmation, then goes back to normal.
  4. 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.
  5. 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 camelCase property into a Python snake_case variable, or a column name into a CONSTANT_CASE environment variable, without retyping it.
  • CSS classes and file names: kebab-case turns Primary Button Large into primary-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.

Frequently asked questions

How do I convert uppercase text to lowercase?

Paste the text and click Copy on the lowercase card. Sentence case is a better starting point for normal prose, but you still need to capitalise "I", names and lines without a full stop by hand.

Does the case converter work offline?

Yes, once the page has loaded. The conversion runs in your browser, so it doesn't need a connection to the server.

When should I use camelCase and when PascalCase?

In JavaScript, Java and TypeScript, camelCase is the usual style for variables and functions, and PascalCase for classes, types and React components. C# also uses PascalCase for methods and properties.

Where are snake_case and kebab-case used?

snake_case is standard for Python variables and functions and common for SQL column names. kebab-case is typical for CSS classes, HTML attributes and command-line flags.

Which case do JSON APIs use for field names?

There is no single standard. JavaScript-oriented APIs mostly use camelCase (userId), while many others, such as the GitHub and Stripe APIs, use snake_case (user_id). Follow the convention the API already uses.

All in Text & Lists

Slug generator

Turn any title into a clean, SEO-friendly URL slug. Transliterates accents (ą→a, ß→ss), lets you pick the separator and runs entirely in your browser.

Text & Lists In your browser

Remove accents

Convert accented and special Latin letters to plain ASCII: café becomes cafe, zażółć becomes zazolc, naïve becomes naive. Handy for slugs, filenames and legacy systems. Runs in your browser.

Text & Lists In your browser

Text to NATO phonetic alphabet

Spell text with the NATO phonetic alphabet — Alfa, Bravo, Charlie — plus spoken digits. Perfect for reading codes, names or passwords aloud over the phone. Runs in your browser.

Text & Lists In your browser

Extract text from a PDF

Pull the text out of a PDF into a plain .txt file. Free, no account, files deleted after 60 minutes.

Document Converters File on the server

Morse Code Translator

Translate text to Morse code and back in your browser. Choose the direction, get instant output with correct word spacing. Nothing is uploaded.

Code & Data In your browser

What do you need?

Swipe up for the next one