Case Converter is a free tool that changes the capitalisation of text. It converts to UPPER CASE, lower case, Title Case and Sentence case for writing, and to camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case for programming. Your text is converted in your browser and never sent anywhere.
How to change text case
- Type or paste your text into the left box.
- Click a case style at the top. The result updates instantly.
- Click Copy and paste it where you need it.
Which case to use
- Sentence case: normal writing, and fixing text typed with Caps Lock on.
- Title Case: headlines, book and film titles. Short words such as “of”, “the” and “and” stay lower case unless they come first.
- UPPER CASE: short labels and signs. Avoid it for long text: it is harder to read and looks like shouting.
- camelCase: variables and functions in JavaScript, Java and many other languages (
firstName). - PascalCase: class and component names (
UserProfile). - snake_case: Python, Ruby and database columns (
first_name). - kebab-case: URLs, CSS classes and file names (
first-name). - CONSTANT_CASE: constants and environment variables (
API_BASE_URL).
Converting variable names
For the code styles, each line is treated as one name. Words are found whether they are separated by spaces, hyphens or underscores, or written together with capitals, and acronyms are handled sensibly:HTTPStatusCode becomes http_status_code in snake_case. Paste a list of names, one per line, to convert them all at once.
Limitations
Sentence case can’t know which words are names, so “paris” stays lower case in the middle of a sentence; check proper nouns afterwards. For turning titles into web addresses, use the Slug Generator, which also removes accents and punctuation.
Frequently asked questions
I typed with Caps Lock on by accident. How do I fix it?
Paste the text and choose Sentence case: every sentence starts with a capital and the rest becomes lower case. Check names and places afterwards, since the tool cannot know which words should keep their capitals.
What is the difference between Title Case and Sentence case?
Title Case capitalises the main words (“The Lord of the Rings”), as used for book titles and headlines. Sentence case capitalises only the first word of each sentence, as in normal writing.
How are the programming cases converted?
Each line is split into words, whether it is written with spaces, hyphens, underscores or capitals, then rejoined in the style you choose. “HTTP status code”, “httpStatusCode” and “http_status_code” all become the same words.
Is my text stored?
No. Conversion happens in your browser and nothing is sent or saved.
Last updated