Case Converter: How to Change Text Case

Headings

Sometimes you just need to adjust the capitalisation of your text, but that could lead to spelling errors or even missing words. This tool was tested using a simple garden heading and signup label. The purpose of this wasn’t to create new text, but to ensure that you could convert your visible text into a specific format.

There are 4 steps to this review. Entering a heading, comparing 2 heading styles, creating an identifier and finally verifying the result. This is using made up examples and while we can see the results in the interface, we can’t guarantee it will work for all languages, punctuation and house styles.

Go to the Case Converter page and enter your text into the main box. Underneath you will see the options to convert your text. Enter your text into the main box (without the quotes). For this example we will use ‘a walk in the garden’. We can see that there are 5 words and 20 characters. It is important to think about how you are going to use your text. You may want your heading to be in Title Case, but your sentence may need to be in a different format or your variable may need to be in a different format.

[Note: Image 1 - Lowercase heading]

If your text is important to you, make sure to save it somewhere else outside of the converter. While it is usually easy to convert your text to a different case, it may not always be easy to do the opposite. If you convert a brand or acronym into lowercase, you may not be able to get it back to the preferred format. The converter won’t know your organisations standards for naming.

Convert your text to Title Case. You will now see a box with your converted text. There will be buttons to copy your result, use as input and clear. It is important to look at your result.

Title Case isn’t all caps!

Using our example heading of ‘a walk in the garden’ we can see that the result is ‘A Walk in the Garden’. The first letter of the sentence and the words ‘Walk’ and ‘Garden’ have been capitalised. However, the words ‘in’ and ‘the’ are still lowercase. This is exactly what we saw in the interface.

[Note: Image 2 - Title Case]

Change the convert option to Capitalise Each Word. This time we can see that the result is ‘A Walk In The Garden’. The words ‘In’ and ‘The’ are now capitalised. While the words are the same, this gives us a practical reason to choose one over the other.

[Note: Image 3 - Capitalise Each Word]

It is important to consider what your requirements are for your publication, class, employer or design system. The converter won’t give you the style guide for your assignment, it will just give you a format. If your site uses sentence headings, you may not want to use either of these options. Always look at the other headings around your text and any writing guidelines.

You don’t need to change a proper noun to make your heading consistent. If your brand has some unusual capitalisation, initials or product names, these may need to be checked manually after a general case change. This is an editorial check, not evidence that the converter can recognise context.

This gives you a good visual comparison of your results. You have tested 1 piece of text with 2 options and you can clearly see the difference in the results. This is more helpful for quick heading tidying than trying to remember a vague statement about correct capitalisation. You can clearly see the changes to your text and decide if it is what you want.

Creating an identifier

We will now change our text to ‘Garden Club Signup’. This is a made up label but will help as it is clear where each word is. We can see there are 3 words and 18 characters. Change the format to snake_case. We can see that our result is ‘garden_club_signup’.

[Note: Image 4 - 3 word label converted to snake_case]

This isn’t a test to prove the software works. Just because your text looks like a programming identifier doesn’t mean it will work in all languages, databases or forms. Always check what characters are allowed, reserved words, character limits and naming conventions. While this will save you typing, the converter won’t know if the name already exists in your project or what it represents.

Click the Use as input button. The text will now appear in the input box. The result box will disappear and you will see a message stating ‘Result has been moved to input for further conversion’. The counter will now show that there is 1 word. This is a helpful reminder that the counter may not always be using the same definition of a word.

Change the format to camelCase. Our text has now become ‘gardenClubSignup’. The underscores have been removed and the first word remains lowercase. The other words have been capitalised. This was a real second conversion.

[Note: Image 5 - Chained camelCase result gardenClubSignup]

It can be helpful to chain your conversions if you need the first result to be the input for the next conversion. However, if you just want to compare a few different formats you can leave the original text in place. This will help you to know if the difference is due to the format or previous conversions. This will make your process easier to replicate.

What we have learnt

We have tested 4 different formats. Title Case, Capitalise Each Word, snake_case and camelCase. The first 2 were compared using the same lowercase heading. The last 2 were chained using a 3 word label. All 4 gave us clear results and we could see that the snake_case result had been moved to the source box using the Use as input button.

There are more options available but we haven’t tested them. The Copy result button also appeared but we didn’t test it. You can see where it is in the images. We can see the text and know that the input has been converted.

A quick final check. Read through your result to ensure no words are missing or changed. Check that any names, acronyms or intentionally capitalised words are correct. Ensure that any spaces, underscores or word breaks match what is required. Put your chosen result into place and check it fits with the rest. Sometimes a label may look good on its own but not fit with the rest of the labels.

If you are converting a block of text, keep your original text clean and convert in chunks. This will help you identify where any unwanted changes have been made. Don’t assume that by doing a general conversion you need to remove all meaningful capitalisation differences. This is a small mechanical change with an editorial decision on both sides. Which format to use and whether it is appropriate.

While this page mentions that it is local, this was a test to prove it works. We don’t need any sensitive information as both the inputs were made up. We can be confident that the heading and identifier conversions work. We can also be confident that the chaining button works as described. If your wording is set and all you need to do is capitalise, this free converter is a simple way to do this.