BrowserTools
Advertisement
Home / Converters / Text Case Converter

Text Case Converter

Convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, a URL slug and more, instantly in your browser.

A text case converter rewrites the same words in a different capitalisation or token style. Paste a phrase and get it back as UPPERCASE, lowercase, Title Case, Sentence case, and the programming styles camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case and dot.case, plus a URL slug. Each result has its own copy button, so you can grab exactly the form you need.

Loading Text Case Converter… If nothing happens, please enable JavaScript.

Frequently asked questions

What is the difference between camelCase and PascalCase?
Both join words with no separator and capitalise each word, but camelCase leaves the very first letter lowercase (myVariableName) while PascalCase capitalises it too (MyClassName). By convention camelCase is used for variables and functions, and PascalCase for classes, components and types.
How is the URL slug generated?
The text is lowercased, every run of spaces or punctuation becomes a single hyphen, and leading or trailing hyphens are removed. So 'The Quick, Brown Fox!' becomes 'the-quick-brown-fox'. Slugs make URLs readable and stable, which is good for both users and search engines.
Will it correctly convert text that is already camelCase or snake_case?
Yes. The converter detects word boundaries from case changes and from underscores, hyphens and spaces, so 'getUserID' or 'get_user_id' are both understood as the words get, user, id and can be re-cased into any other style.
How does Title Case decide which words to capitalise?
It capitalises the first letter of each major word and leaves short joining words (a, an, the, and, or, of, to, in, on, and similar) lowercase, unless they start the title. This follows common English title style. For strict adherence to a specific style guide (AP, Chicago) you may want to review the result, since guides differ on edge cases.
What is CONSTANT_CASE used for?
CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) joins words with underscores and uppercases everything: MAX_RETRY_COUNT. It is the convention for constants and environment variables in many languages, signalling a value that does not change at runtime.
Is my text sent to a server?
No. All conversion happens locally in your browser. Nothing is uploaded, so the tool is safe for private notes, code and unpublished content.

About Text Case Converter

These styles are not interchangeable, and using the wrong one causes real bugs. JavaScript and Java conventionally use camelCase for variables and PascalCase for classes; Python and Ruby use snake_case; environment variables and constants use CONSTANT_CASE; CSS classes, file names and URL paths favour kebab-case. A URL slug goes one step further: it lowercases the text, replaces every run of non-alphanumeric characters with a single hyphen, and trims stray hyphens, producing something clean and readable like 'my-first-blog-post'.

The converter is token-aware. It splits on spaces and punctuation but also on case boundaries, so an input that is already camelCase or snake_case is understood and re-cased correctly rather than being mangled. Everything runs in your browser, with no upload and no length limit worth worrying about.

Why programmers argue about case

The naming styles have nicknames that stuck. 'camelCase' is named for the hump in the middle, and 'snake_case' for the way the underscore makes words slither along the baseline. 'kebab-case' imagines the words skewered on hyphens. These are not just aesthetics: the choice is so tied to language culture that mixing styles in one codebase is considered a code smell, and most teams enforce a single convention with a linter.

The split runs deep. The Python community formalised snake_case in its PEP 8 style guide, while JavaScript and Java leaned into camelCase from their C and C-derived roots. When data crosses between systems, for example a snake_case JSON API consumed by a camelCase front end, developers often write a conversion layer to translate keys, which is exactly the kind of mechanical re-casing this tool does by hand.

Advertisement