Overview
Convert between every common text case style
Text case is the difference between “hello world” and “HELLO WORLD” and “helloWorld”. Different contexts demand different cases: marketing copy wants Title Case, programming wants camelCase or snake_case depending on the language, headlines sometimes want UPPERCASE, sentences want Sentence case. Doing these conversions by hand is tedious and error-prone, especially for long passages.
ToolHub Case Converter handles eleven case styles in a single tool. Type once, see every conversion live, copy whichever one you need.
Step-by-step
How to convert text case
- 1
Type or paste your text
Drop any text into the input box. All case conversions update instantly as you type. - 2
Pick the case you need
Eleven cards show the same text in different case styles. Read the description under each style to see when to use it. - 3
Copy with one click
Each card has its own copy button. Click to copy that exact conversion.
Background
The eleven case styles explained
UPPERCASE
Every letter capitalized. Used for headings, acronyms, warnings, or any text that should look loud. Avoid for body text, since reading long uppercase passages is slower.
lowercase
Every letter small. Used for casual designs, brand styles (apple, airbnb), and SEO-friendly URLs.
Title Case
First letter of every word capitalized. Used for headlines, book titles, and song names. Note that strict English style guides have rules about which short words to lowercase (“of”, “and”), but most casual usage capitalizes everything.
Sentence case
Only the first letter of each sentence is capitalized. The standard for body paragraphs in modern writing.
camelCase
Words joined together with each subsequent word capitalized. myVariableName. Used for variable and function names in JavaScript, Java, Swift, and many other languages.
PascalCase
Like camelCase but the first letter is also capitalized. MyClassName. Used for class names in most languages, and for component names in React, Vue, and Angular.
snake_case
Words joined with underscores in lowercase. my_variable_name. Standard for variable and function names in Python, Ruby, and most database column names.
SCREAMING_SNAKE_CASE
snake_case in uppercase. MAX_RETRIES. Used for constants in most languages: API keys, configuration values, enum names.
kebab-case
Words joined with hyphens in lowercase. my-variable-name. Used for CSS class names, URL slugs, npm package names, and HTML attributes.
AlTeRnAtInG
Letters alternating between lower and upper. Used in casual internet writing for sarcasm.
iNVERSE
Each letter swapped between cases. Mostly novelty.
Use cases
When to use which case
Programming variables
Use camelCase in JavaScript and Java, snake_case in Python and Ruby, and kebab-case for filenames.
URL slugs
Always use kebab-case (lowercase, hyphens). Search engines treat /my-blog-post and /My_Blog_Post differently.
Class names in CSS
Use kebab-case (.my-button) for consistency with HTML conventions.
Constants and config
SCREAMING_SNAKE_CASE for unchanging values like API_URL or MAX_USERS.
Article titles
Title Case for headings and section titles, Sentence case for subtitles and body.
React or Vue components
PascalCase for component file names and JSX tags, kebab-case if using Web Components.
Tips for clean case conversions
- Be consistent within one project. Mixing camelCase and snake_case in the same codebase is confusing.
- When converting from snake_case or kebab-case to PascalCase, keep abbreviations like ID or URL all-caps if your team prefers (myURLPath vs myUrlPath).
- URLs should always be lowercase. Title Case URLs cause subtle SEO and caching bugs.
- Title Case rules vary by style guide. Pick one (AP, Chicago) and stick with it.
- When in doubt, follow the convention of the language or framework you are writing in.
Common questions
Why does my converted camelCase look weird?
Case conversions split your input on whitespace and punctuation. If your input already has mixed case (like a sentence with proper nouns), the result of camelCasing it might lose those capitalization cues. Convert clean inputs for cleanest outputs.
Are numbers preserved?
Yes. Numbers are kept exactly as they are. Only letter case changes.
What about non-Latin scripts?
Languages like Hindi, Arabic, Chinese, and Japanese do not have separate cases, so case conversions have no effect on those characters.
100% private