Text Tools

Case Converter

Convert text to common writing and programming case styles.

Browser workspace
LOCAL PROCESSING

Input stays in this browser while you use the tool.

About this tool

The Case Converter changes the capitalisation of text. Paste a word, a sentence or a whole paragraph, choose a case style and the tool rewrites the text in that style. It covers the styles used in everyday writing, such as UPPERCASE, lowercase, Title Case and Sentence case, and the naming styles used in programming, such as camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE.

Writing styles change how capital letters are used in normal text. Uppercase turns every letter into a capital, lowercase turns every letter into a small letter, title case capitalises the first letter of each word, and sentence case capitalises only the first letter of each sentence. They are useful for headlines, subject lines, headings and for fixing text that was typed with the Caps Lock key on by mistake.

Programming styles join several words into one name without spaces. camelCase starts with a small letter and capitalises each following word, as in userFirstName. PascalCase capitalises every word, as in UserFirstName. snake_case joins lowercase words with underscores, kebab-case joins them with hyphens, and CONSTANT_CASE writes them in capitals with underscores. Which one you need depends on the language and the team style guide.

The conversion runs in your browser, so your text is processed on your own device and is not sent to the BitToolsKit server.

Use cases

  • Fix text typed with Caps Lock on. Paste the text and convert it to lowercase or sentence case instead of typing it again.
  • Format headlines, headings and email subject lines. Title case suits headlines and page titles, while sentence case is common for body text and many modern interfaces.
  • Name variables, functions and classes. Turn a phrase such as user first name into userFirstName for JavaScript, user_first_name for Python or UserFirstName for a class.
  • Create URL slugs, CSS class names and file names. kebab-case is widely used for web addresses, CSS classes and file names because hyphens are easy to read and safe in URLs.
  • Write constants and environment variables. CONSTANT_CASE is the usual style for values that do not change, such as MAX_RETRY_COUNT.
  • Clean up imported data. Names, product titles and addresses that arrive in all capitals or in mixed styles can be brought into one consistent format.
  • Match the style of a database or an API. When one system uses snake_case and another uses camelCase, converting the field names by tool is faster than editing them by hand.

How to use

  1. Type or paste your text into the Input box.
  2. Choose the case style you want, such as UPPERCASE, Title Case or camelCase.
  3. Click Run tool.
  4. Read the converted text in the Output box.
  5. Check the result. Names, acronyms and abbreviations sometimes need a manual correction after an automatic conversion.
  6. Click Copy output to copy the text, or Download to save it as a file.
  7. Click Clear to start again with new text.

Keep a copy of your original text. Converting to lowercase or uppercase removes the original capital letters, and they cannot be restored automatically afterwards.

Examples

Example 1: UPPERCASE and lowercase

Input:
Hello World, Made Easy
UPPERCASE:
HELLO WORLD, MADE EASY

lowercase:
hello world, made easy

Example 2: Title Case

Input:
the quick brown fox
Output:
The Quick Brown Fox

Example 3: Sentence case from badly capitalised text

Input:
tHIS IS a MIXED text. ANOTHER one.
Output:
This is a mixed text. Another one.

Example 4: Programming styles from one phrase (five separate runs)

Input:
user first name
camelCase: userFirstName
PascalCase: UserFirstName
snake_case: user_first_name
kebab-case: user-first-name
CONSTANT_CASE: USER_FIRST_NAME

Example 5: An acronym in sentence case

Input:
NASA LAUNCHED A NEW ROCKET.
Output:
Nasa launched a new rocket.
The tool cannot know that NASA is an acronym, so it is changed to Nasa. Correct it by hand if you need NASA.

Common errors

Acronyms and abbreviations lose their capitals, such as NASA becoming Nasa

Sentence case and title case lowercase every other letter in a word, and a tool cannot tell an acronym from an ordinary word. Fix acronyms, brand names and initials by hand after converting.

Proper nouns such as names of people, places and products are lowercased

Sentence case keeps only the first letter of each sentence. Capitalise names such as London, Maria or iPhone yourself afterwards.

Title case capitalises small words such as of, and and the

Style guides disagree on small words. Some leave short words such as a, of and the in lowercase unless they come first or last. If your guide asks for that, correct those words by hand.

An apostrophe causes odd capitals, such as Don'T

Check contractions and possessives in the output. Correct them by hand if a letter after an apostrophe was capitalised.

camelCase or snake_case looks wrong because the input has punctuation

Programming styles are meant for words only. Remove commas, quotation marks and other symbols from the input first, and avoid starting a name with a digit, which most languages do not allow.

A name that is already in camelCase is not split into words

A tool that splits on spaces and separators sees userFirstName as one word. To convert it to snake_case, first separate the words with spaces, for example user First Name, and convert again.

Special letters change in uppercase, such as the German ß becoming SS

This follows standard Unicode rules for uppercase and can change the length of the text. Turkish and Azerbaijani also use a dotted and a dotless i that general rules do not handle. Check text in those languages by eye.

You need the original capitalisation back

A conversion to lowercase or uppercase cannot be undone. Keep the original text, or use your editor's undo function before you close it.

Line breaks or spaces look different in the output

If the layout matters, compare the output with your original and fix extra spaces. Remove leading and trailing spaces before using the text in a field or a file name.

Long all-caps text is hard to read

Text in capitals is slower to read and can feel like shouting. Use uppercase for short labels and acronyms, and sentence case for longer passages.

Frequently asked questions

What is the difference between title case and sentence case?

Title case capitalises the first letter of each word, as in The Quick Brown Fox. Sentence case capitalises only the first letter of each sentence, as in The quick brown fox. Title case is common for headlines and sentence case for body text.

What is the difference between camelCase and PascalCase?

Both join words without spaces and capitalise each new word. camelCase starts with a small letter, as in userFirstName, and PascalCase starts with a capital, as in UserFirstName.

What is the difference between snake_case and kebab-case?

snake_case joins lowercase words with underscores and kebab-case joins them with hyphens. Python and many databases use snake_case, while web addresses and CSS class names usually use kebab-case.

Which case style should I use in my code?

Follow the convention of your language and project. JavaScript variables and functions are usually camelCase, classes and components are PascalCase, Python variables and functions are snake_case and constants are written in CONSTANT_CASE.

Which case is best for URLs and file names?

Lowercase with hyphens is the usual choice because it is easy to read, and web servers often treat capital letters as different from small ones. Avoid spaces, which are written as %20 in a URL.

Does the tool change numbers, symbols and punctuation?

No. Case only applies to letters. Digits, punctuation marks and symbols stay as they are.

Does it work with accented letters and other alphabets?

Yes, for letters that have upper and lower case forms, such as accented Latin, Greek and Cyrillic letters. Alphabets without case, such as Chinese, Arabic and Hebrew, are not changed.

Can I undo a conversion?

Not automatically. Converting to lowercase or uppercase removes the original capitalisation, so keep your original text or use undo in your editor.

Is my text uploaded to a server?

No. The tool runs in your browser and works on your device. As a general habit, avoid pasting passwords, API keys or private tokens into any online tool.

Related tools

Share this page