About CONSTANT_CASE Converter
A CONSTANT_CASE converter writes words in capitals and joins them with underscores, also called SCREAMING_SNAKE_CASE. Paste my var name and you get MY_VAR_NAME. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.
CONSTANT_CASE is the usual style for constants in many languages, for environment variables such as DATABASE_URL, and for enum members in some codebases. The tool splits camelCase at the capitals first, so maxRetryCount becomes MAX_RETRY_COUNT.
Each line is converted on its own, so you can paste a list of names and get a list of constants. Punctuation is removed, and a digit becomes its own word.
How to use CONSTANT_CASE Converter
- Type or paste your text into the box.
- Click the case you want. On the main page the text in the box changes in place, and Undo steps back.
- For Title Case, pick a style: AP, APA, Chicago or MLA. The result updates to follow that guide.
- On a page for one case, such as Uppercase, the converted text appears under the box in a Result field, and you can pick another case to compare.
- Press Copy to put the result on your clipboard, or Download .txt to save it as a file.
Features
- 15 cases from UPPERCASE to Train-Case, as one-click buttons.
- Title Case with four style guides: AP, APA, Chicago and MLA.
- Sentence case that also capitalises the word "I".
- Code cases that split camelCase and mixed separators into words first, so getUserName converts cleanly.
- Line breaks are kept, and each line is converted on its own for the code cases.
- Undo, Use result as input, Copy and Download .txt.
- Handles accented letters and other scripts that have letter case.
- Nothing is saved or uploaded.
Worked examples
my var name gives MY_VAR_NAME
getUserProfileName gives GET_USER_PROFILE_NAME
Hello, World! 2024 report gives HELLO_WORLD_2024_REPORT
Privacy: how it works
- The conversion runs in your browser tab. Your text is not sent to Ulkaa or to any other server.
- This tool does not save your text. Close or reload the page and it is gone.
Tips
- Convert to lowercase first when text arrives in capitals, and then to Sentence case to fix it. Typing in capitals is the usual cause.
- Use Use result as input to chain cases, for example Title Case and then camelCase.
- Check small words in a Title Case result. The guides disagree on prepositions of four letters or more, so pick the one your publisher uses.
- Convert a whole list of names at once. Every line is handled on its own for the code cases.
Frequently asked questions
Is it really free?
Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.
Do I need an account?
No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.
Does it run in my browser?
Yes. Your text are processed by code running in your browser tab, on your own device.
Is my data uploaded?
No. Your text are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.
What is CONSTANT_CASE used for?
Constants and environment variable names, such as MAX_SIZE or API_KEY.
Is it the same as SCREAMING_SNAKE_CASE?
Yes. Both mean uppercase words joined by underscores.
More Text Case Converter pages
- Text Case ConverterPaste your text and convert it to any letter case with one click.
- Uppercase ConverterTurn any text into capital letters.
- Lowercase ConverterTurn any text into small letters.
- Title Case ConverterCapitalise a headline in AP style, or switch to another style guide.
- Sentence Case ConverterFix text in capitals, or lowercase text, into properly capitalised sentences.
- Capitalize Each WordStart every word with a capital letter.
- camelCase ConverterTurn phrases and identifiers into camelCase.
- PascalCase ConverterTurn phrases and identifiers into PascalCase.
- snake_case ConverterTurn phrases and identifiers into snake_case.
- kebab-case ConverterTurn phrases and identifiers into kebab-case.
- dot.case ConverterTurn phrases and identifiers into dot.case.
- Alternating Case ConverterTurn text into aLtErNaTiNg letters.
- Inverse Case ConverterFlip every capital to a small letter and every small letter to a capital.