Case Converter
Convert text between sentence, title, camel, snake, kebab and more — all ten at once. Runs in your browser; nothing is uploaded.
About Case Converter
Case Converter rewrites your text into ten different cases at once — the prose cases used in writing and the identifier cases used in code — so you can copy whichever one you need without retyping anything.
The prose cases carry real conventions. Sentence case capitalises only the first word and proper nouns; Title Case capitalises the significant words but conventionally leaves short articles, conjunctions and prepositions lowercase unless they open or close the line. That last rule is why 'The Quick Brown Fox Jumps over the Lazy Dog' is correct while capitalising 'over' is not — and it is exactly the part naive converters get wrong by capitalising every word indiscriminately.
The programming cases exist because most languages forbid spaces in identifiers, and each community settled on a different substitute. JavaScript and Java use camelCase for variables and PascalCase for classes and components; Python and SQL prefer snake_case; URLs, CSS classes and file names use kebab-case, because a hyphen is safe in a web address where an underscore can be obscured by an underline; and CONSTANT_CASE marks environment variables and true constants.
The conversion here splits on camelCase boundaries as well as on spaces and punctuation, which means an existing identifier round-trips properly. Paste myVariableName and you get my_variable_name and my-variable-name, not the whole thing collapsed to lowercase — a limitation of converters that only split on whitespace.
How to change text case
- Paste or type your text into the box.
- Every case is generated immediately below — nothing to click.
- Find the one you need; each shows what it is normally used for.
- Click the copy button beside it.
- Clear the box when you are done.
Tips & common problems
Title Case is not just capitalising everything
Style guides keep short articles, conjunctions and prepositions lowercase unless they begin or end the title. That is the rule applied here, so results match a copy editor's expectation.
Existing identifiers convert correctly
Text is split on camelCase boundaries as well as spaces, so myVarName becomes my_var_name rather than myvarname. That makes it usable for renaming across languages.
Choose kebab-case for anything web-facing
URLs, CSS class names and file names prefer hyphens. Underscores can be hidden by a text underline in a link, which makes an address hard to read aloud or transcribe.
CONSTANT_CASE signals immutability
By convention it marks values that never change — environment variables and true constants. Using it for ordinary variables misleads anyone reading the code.
Frequently asked questions
What is the difference between Title Case and capitalising every word?
Title Case leaves minor words such as a, the, and, of and to lowercase unless they are first or last. Capitalising every word is a different style that most editors treat as incorrect.
What is camelCase used for?
Variable and function names in languages such as JavaScript, Java and C#. Its sibling PascalCase, which also capitalises the first word, is used for classes, types and React components.
When should I use snake_case versus kebab-case?
snake_case for Python variables, database columns and many config formats; kebab-case for URLs, CSS class names and file names, where a hyphen reads more clearly than an underscore.
Does it handle text that is already camelCase?
Yes. Words are split on case boundaries as well as separators, so an existing identifier converts cleanly into any other convention.
Is my text sent to a server?
No. Every conversion happens in your browser and nothing is transmitted or stored.
Can I convert a whole paragraph?
Yes for the prose cases. The identifier cases are designed for short phrases and will run a long paragraph into one continuous token, which is rarely what you want.