Text

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:

StyleExampleWhere you use it
camelCaseuserProfileSettingsJavaScript and Java variables, JSON keys
PascalCaseUserProfileSettingsClasses and components
snake_caseuser_profile_settingsPython, Ruby, SQL columns
kebab-caseuser-profile-settingsCSS classes, HTML attributes, URLs
CONSTANT_CASEUSER_PROFILE_SETTINGSConstants, environment variables
Title CaseUser Profile SettingsHeadings and page titles
Sentence caseUser profile settingsBody copy and descriptions
sluguser-profile-settingsURLs 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