Title case, sentence case, camelCase and snake_case explained
Text can be written in many cases, and each one has a place. Headlines, emails, file names and code each follow their own habits. Knowing which is which saves you from retyping text that was pasted in capital letters or in the wrong style.
Cases for writing
Uppercase writes every letter as a capital and lowercase writes none. Sentence case capitalises only the first word and proper nouns, as in a normal sentence, and it is the friendliest choice for body text and many modern headlines. Title case capitalises the main words of a headline and is common in book titles and formal headings.
Style guides differ on which small words stay in lowercase in title case, so pick one convention for your site or document and apply it consistently.
Why all caps is a bad idea for long text
Long passages in capitals are harder to read because the words lose their shape, and in messages they are often read as shouting. Reserve all caps for short labels, abbreviations or a single word of emphasis.
Cases for code and file names
Programmers join words without spaces using conventions. camelCase starts with lowercase and capitalises each following word, as in userName, and is common for variables in JavaScript. PascalCase capitalises the first word too, as in UserProfile, and is typical for classes and components. snake_case uses underscores between lowercase words and is common in Python and databases. kebab-case uses hyphens and is the usual choice for web addresses and CSS class names.
Following the convention of the language or project you work in makes the code easier for others to read.
Why URLs prefer hyphens
In web addresses, hyphens are the standard word separator, and search engines read them as spaces. Underscores join words together and can be read as one long word. Lowercase also avoids problems on servers that treat uppercase and lowercase differently. That is why a clear slug looks like how-to-resize-an-image.
Fixing text quickly
If you receive a list of names in capitals, an old document with all text in lowercase or a heading you need as a variable name, there is no need to retype. Paste the text into the Zipnify converter and every common case appears at once. Press copy next to the one you want. The text stays in your browser.
A note on accents and special characters
When converting text for URLs or file names, accents and symbols often need to be removed or replaced, because some systems handle them poorly. Check the result before using it as an identifier.
Try the tool: Text case converter
Frequently asked questions
What is the difference between title case and sentence case?
Title case capitalises the main words of a headline, while sentence case capitalises only the first word and proper nouns.
Which case is best for URLs?
Lowercase with hyphens between words, known as kebab-case.
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter, while PascalCase starts with an uppercase one.
Is my text sent anywhere?
No. The conversion happens in your browser.