Case Converter
Convert text to UPPER CASE, lower case, Title Case or Sentence case, or turn names into camelCase, snake_case, kebab-case and other code styles. Everything runs in your browser.
- Free
- No sign-up
- Runs in your browser
0 characters
Choose a case
JavaScript and Java variables.
Text is converted on your device as you type. Nothing is uploaded.
What it is for
Case is whether letters are capitals or small. This tool changes the case of ordinary text, such as a heading or a paragraph typed in caps lock, and also converts names between the styles programmers use, such as camelCase and snake_case.
- Fix a paragraph that was typed with caps lock on.
- Turn a heading into Title Case for a blog post, slide or email subject.
- Rename a list of fields from snake_case database columns to camelCase JavaScript properties.
- Make a URL slug, CSS class or file name in kebab-case.
- Write environment variable names in CONSTANT_CASE.
How to use it
- Type or paste your text, or a list of names with one per line.
- Pick a case. Each button shows a preview of your text in that style.
- For code styles, choose whether each line becomes its own name or the whole text becomes one.
- Copy the result, or press Use as input to keep converting it.
Examples
Text to code styles
You enter
user profile settings
getHTTPResponseCodeYou get
camelCase: userProfileSettings
getHttpResponseCode
snake_case: user_profile_settings
get_http_response_code
kebab-case: user-profile-settings
get-http-response-codeEach line is converted separately. Turn that off to join everything into one name.
Title Case
You enter
how to write a great blog post in 2026You get
How to Write a Great Blog Post in 2026Short words such as a, in, of and to stay small unless they come first or last.
Fix caps lock
You enter
THIS IS SHOUTING. PLEASE STOP!You get
This is shouting. Please stop!Sentence case. Names such as London will need their capital put back by hand.
Good to know
- Every style shows a live preview of your first line, so you can compare them before you choose.
- Code styles understand any input: Hello World, hello_world, hello-world and helloWorld all convert cleanly.
- Acronyms are split sensibly, so getHTTPResponseCode becomes get_http_response_code.
- Paste a list with one name per line to convert all of them at once.
Limits and disclaimers
- Sentence case and lower case cannot know which words are names, so proper nouns such as Paris or iPhone lose their capitals.
- Title Case follows common AP and Chicago rules for English. Style guides disagree on a few words, such as whether to capitalise with or from.
- Code styles keep only letters and numbers. Punctuation, emoji and apostrophes are removed, so don't becomes dont.
- Letters with accents are kept, but some programming languages do not allow them in names.
ByteKit is provided as is, for convenience. Check any result that matters before you use it in production, and keep passwords, keys and personal data out of any website you do not control.
Case styles at a glance
Every style this converter supports, with where you are most likely to see it.
| Style | Example | Used for |
|---|---|---|
| UPPER CASE | HELLO WORLD | Every letter as a capital. |
| lower case | hello world | Every letter small. |
| Title Case | The Lord of the Rings | Main words capitalised, short words like of and the kept small. |
| Sentence case | Hello world. How are you? | A capital at the start of each sentence only. |
| camelCase | helloWorld | JavaScript and Java variables. |
| PascalCase | HelloWorld | Class names and React components. |
| snake_case | hello_world | Python, Ruby and database columns. |
| CONSTANT_CASE | HELLO_WORLD | Constants and environment variables. |
| kebab-case | hello-world | URLs, CSS classes and file names. |
| Train-Case | Hello-World | HTTP headers such as Content-Type. |
| dot.case | hello.world | Config keys and translation keys. |
| path/case | hello/world | Folder paths and routes. |
| aLtErNaTiNg | hElLo WoRlD | Every other letter capitalised, for fun. |
| iNVERSE cASE | hELLO wORLD | Small letters become capitals and capitals become small. |
Related tools
Questions people ask
Is my text uploaded anywhere?
No. Text is converted in your browser as you type and never sent to a server.
What is the difference between camelCase and PascalCase?
Both join words without spaces and start each word with a capital. camelCase keeps the very first letter small (userName), while PascalCase capitalises it too (UserName). PascalCase is common for class and component names.
When should I use snake_case or kebab-case?
snake_case is the norm for Python variables, Ruby and database columns. kebab-case is used in URLs, CSS class names and file names, because many languages do not allow a hyphen in variable names.
What is CONSTANT_CASE?
Also called SCREAMING_SNAKE_CASE, it is snake_case in capitals. It is used for constants and environment variables, such as API_KEY or MAX_RETRY_COUNT.
How are acronyms handled?
A run of capitals is treated as one word, so XMLHttpRequest splits into XML, Http and Request. In camelCase and PascalCase acronyms become Xml and Http, which most style guides, including Google's, recommend.