Text Case Converter
Convert text between UPPERCASE, lowercase, Title, camelCase, snake_case, kebab-case, slug and more.
Privacy: This tool runs entirely in your browser. Your data never leaves your device and is never uploaded to any server.
UPPERCASE
HELLO WORLD EXAMPLE
lowercase
hello world example
Title Case
Hello World Example
Sentence case
Hello world example
camelCase
helloWorldExample
PascalCase
HelloWorldExample
snake_case
hello_world_example
kebab-case
hello-world-example
CONSTANT_CASE
HELLO_WORLD_EXAMPLE
slug
hello-world-example
How to use this case converter
- Paste your text into the input.
- Every case style is generated at once — pick the one you need.
- Copy the result with a single click.
- Conversions run locally; the text is never uploaded.
The same phrase in every style
Case conversion is easier to trust when you can see the output next to the input. Using "user profile settings" as the example:
| Style | Example | Where you use it |
|---|---|---|
| camelCase | userProfileSettings | JavaScript and Java variables, JSON keys |
| PascalCase | UserProfileSettings | Classes and components |
| snake_case | user_profile_settings | Python, Ruby, SQL columns |
| kebab-case | user-profile-settings | CSS classes, HTML attributes, URLs |
| CONSTANT_CASE | USER_PROFILE_SETTINGS | Constants, environment variables |
| Title Case | User Profile Settings | Headings and page titles |
| Sentence case | User profile settings | Body copy and descriptions |
| slug | user-profile-settings | URLs and file names |
Which case belongs where
- camelCase — JavaScript and Java variables, JSON keys.
- PascalCase — class and component names.
- snake_case — Python and Ruby, and many database columns.
- kebab-case — CSS classes, HTML attributes and URLs.
- CONSTANT_CASE — constants and environment variable names.
- Title Case — headings and article titles.
Slugs and why they matter
A slug is the URL-friendly form of a title: lowercase, words separated by hyphens, punctuation gone.
Hyphens are preferred over underscores in URLs because search engines treat them as word separators, while underscores join words together.
Acronyms are where conversions get judged
Converting API Response ID gives you apiResponseId or ApiResponseId — and reasonable people disagree about which is correct.
Most libraries normalise acronyms to a single capitalised word. Check the convention your codebase already uses before reformatting a large file.
Frequently asked questions
Which cases are supported?
UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and slug.
What is a slug?
A slug is a URL-friendly, lowercase version of text with words separated by hyphens.
Is my text uploaded?
No. All conversions happen locally in your browser.
Does the converter change the meaning of my text?
It changes only the case and the punctuation between words. The words themselves are not altered, reordered or translated.
What is the difference between a slug and kebab-case?
They are close, but a slug also strips punctuation and accents, so it stays safe in a URL where plain kebab-case might not.
Can I convert a whole file at once?
Yes. Paste the entire contents; every style is generated in one pass and nothing is uploaded.
More Text tools
Text Diff Compare
Compare two blocks of text line by line and see exactly what was added and removed.
Regex Tester
Test JavaScript regular expressions with live match highlighting, flags and capture groups.
Markdown Editor
Write Markdown and preview the rendered HTML live, entirely in your browser.
Lorem Ipsum Generator
Generate placeholder text by paragraph, sentence or word, ready to paste into a design or template.
Word & Character Counter
Count words, characters, sentences and paragraphs as you type, with an estimate of reading time.