ToolNest

Case Converter

Free case converter. Change text to uppercase, lowercase, title case, sentence case, camelCase, snake_case or kebab-case instantly.

Result

Converted text appears here…

Retyping text to change its capitalisation is a waste of time, and doing it by hand in code is how inconsistent variable names get into a codebase. This converter switches between eight case styles instantly.

Paste your text, pick a style, copy the result. Everything stays in your browser.

How to use the Case Converter

  1. Paste your text

    Any length, from a single word to a whole document.

  2. Choose a case style

    Every style is converted at once, so you can see them side by side and pick the right one.

  3. Copy the result

    One click copies the version you need.

The eight styles

StyleExampleUsed for
UPPERCASEHELLO WORLDEmphasis, constants, headings
lowercasehello worldNormalising input, URLs, email addresses
Title CaseHello WorldHeadlines, book and article titles
Sentence caseHello worldBody text, UI labels, buttons
camelCasehelloWorldJavaScript and Java variables
PascalCaseHelloWorldClass names, React components, C# methods
snake_casehello_worldPython, Ruby, database columns
kebab-casehello-worldURLs, CSS classes, file names

Title case is not just capitalising everything

Proper title case capitalises the first and last words and all major words, but leaves short articles, conjunctions and prepositions lowercase: "The Rise of the Machines", not "The Rise Of The Machines".

Style guides disagree on the details. AP style lowercases prepositions of three letters or fewer; Chicago lowercases all prepositions regardless of length. Both capitalise the first and last word no matter what. Pick one guide and apply it consistently.

Naming conventions by language

LanguageVariablesClassesConstants
JavaScript / TypeScriptcamelCasePascalCaseUPPER_SNAKE
Pythonsnake_casePascalCaseUPPER_SNAKE
JavacamelCasePascalCaseUPPER_SNAKE
C#camelCasePascalCasePascalCase
GocamelCasePascalCase (exported)PascalCase
Rustsnake_casePascalCaseUPPER_SNAKE
SQLsnake_case——
CSSkebab-case——

In Go, capitalisation is not stylistic — an identifier starting with an uppercase letter is exported from its package, and a lowercase one is not.

Why URLs use kebab-case

Search engines treat hyphens as word separators and underscores as word joiners, so /case-converter/ reads as two words while /case_converter/ may be read as one. Google has stated this explicitly.

Hyphens are also visually clearer in a URL, survive being underlined in a link, and avoid the encoding problems that spaces cause. Lowercase kebab-case is the standard for web paths, CSS class names and static asset file names.

Frequently asked questions

What is the difference between title case and sentence case?

Title case capitalises the major words in a heading — "The Rise of the Machines". Sentence case capitalises only the first word and any proper nouns — "The rise of the machines". Most modern interfaces use sentence case for buttons and labels.

What is camelCase?

A naming style where the first word is lowercase and each subsequent word is capitalised with no separators, as in getUserName. It is the standard for variables in JavaScript, Java and C#.

What is the difference between camelCase and PascalCase?

Only the first letter. camelCase starts lowercase (userName); PascalCase starts uppercase (UserName). PascalCase is conventionally reserved for classes, types and React components.

Should URLs use hyphens or underscores?

Hyphens. Search engines treat them as word separators and underscores as joiners, so word-counter reads as two words while word_counter may not.

Does converting case change my text?

Only capitalisation. Punctuation, spacing, line breaks and word order are preserved exactly, except in the programming styles which necessarily replace spaces with separators.

Can it handle accented characters?

Yes. Conversion is Unicode-aware, so accented Latin characters, Greek, Cyrillic and other cased scripts convert correctly.

Is my text uploaded?

No. Conversion happens entirely in your browser and nothing is transmitted.

What is UPPER_SNAKE_CASE for?

Constants, by near-universal convention across languages — MAX_RETRY_COUNT. It signals to other developers that the value is not meant to change.

100% private. Files are processed on your device and never uploaded.

Instant results. No upload queue. Processing time depends on your device.

Free forever. No signup, no watermark, no paid tier.

Works everywhere. Use a modern browser on your phone or computer.

Related tools

Case Converter is one of all the free tools on ToolNest. No account or subscription needed — anywhere in the world.