Before adding an uppercasing call to your code, it helps to see exactly what it will output.
This tool capitalises your string the same way JavaScript toUpperCase() does, so you can preview the result.
How to use To Uppercase
- Paste the string you want to uppercase.
- To Uppercase returns it just as toUpperCase() would in code.
- Copy the uppercased string into your editor or test.
Use cases
- Previewing an uppercased constant before coding it.
- Normalising a string for a case-insensitive match.
- Checking how a value reads after toUpperCase().
Good to know
To Uppercase mirrors the locale-neutral JavaScript toUpperCase(). That suits most code, but languages with special casing should use toLocaleUpperCase() with a locale in code. Here the result is for previewing and copying only, and nothing is run against your data.
Frequently asked questions
Does this match JavaScript toUpperCase()?
Yes. It applies the same locale-neutral uppercasing the default method uses.
How do I handle locale rules?
Use toLocaleUpperCase() in code; this preview shows the neutral result.
Will one character ever become two?
It can. Letters like the German ss expand to SS when uppercased, matching the method.