CONSTANT_CASE Converter
Convert phrases and identifiers into CONSTANT_CASE — common for env vars and constants.
Input
Convert to
Output
Private by design
This conversion runs entirely in your browser. Your text is not sent to a server.
Tip
Passwords, API keys, and some identifiers are case-sensitive. Convert them only when you intend to change the value.
How to convert with CONSTANT_CASE Converter
Paste or type your text in the input box.
Watch the output update instantly — nothing is uploaded.
Pick another case style to open that converter with the same text.
Copy the result, or use it as the next input.
When should you use it?
Writing
Soften headlines, notes, and chat so the copy reads as normal sentences.
Programming
Match identifier conventions in code, configs, and APIs.
URLs
Prepare hostnames, paths, slugs, and CSS class names.
Data
Normalize names, tags, and imported rows to a single case.
About CONSTANT_CASE conversion
CONSTANT_CASE (also called SCREAMING_SNAKE) uppercases words and joins them with underscores. It is common for environment variables and enum-like constants. snake_case is the lowercase sibling.
Worked example: “The Quick BROWN Fox” becomes “THE_QUICK_BROWN_FOX.” camelCase would be theQuickBrownFox. Do not use CONSTANT_CASE in URLs.
Nothing is uploaded. The dedicated URL is /tools/constant-case. Case Converter hub can switch Target case to CONSTANT_CASE on one page.
We do not write .env files and we do not check whether the name is already defined. Leading digits may be awkward in some languages — inspect the output. Close the tab to drop the draft. Shell exports and CI secrets often use this style; CSS custom properties usually do not.
Ops still owns the real secret store. This page only shapes the identifier string.
CONSTANT_CASE Converter examples
Headline
Sentence
Identifier
Case style comparison
| Style | Example | Typical use |
|---|---|---|
| lowercase | hello world example | Soft copy, tags, and normalizing user input |
| UPPERCASE | HELLO WORLD EXAMPLE | Headings, acronyms, and short labels |
| Sentence case | Hello world example | Prose, captions, and readable paragraphs |
| Title Case | Hello World Example | Titles, headlines, and proper names |
| camelCase | helloWorldExample | JavaScript variables and object keys |
| PascalCase | HelloWorldExample | Types, classes, and React components |
| snake_case | hello_world_example | Python, APIs, and database columns |
| kebab-case | hello-world-example | URLs, CSS classes, and file names |
| CONSTANT_CASE | HELLO_WORLD_EXAMPLE | Env vars, constants, and enum names |
CONSTANT_CASE Converter FAQ
Environment variables and enum-like constants (also called SCREAMING_SNAKE). “The Quick BROWN Fox” becomes “THE_QUICK_BROWN_FOX.” snake_case is the lowercase sibling. Do not use CONSTANT_CASE in URLs. The dedicated path is /tools/constant-case.
No. UPPERCASE does not insert underscores. camelCase would be theQuickBrownFox. Check glued acronyms before you rename a constant.
No. Case Converter hub can switch Target case to CONSTANT_CASE on one page. Convert to keeps input. Close the tab to drop the draft.
No. We do not check whether the name is already defined. Leading digits may be awkward in some languages. Shell exports and CI secrets often use this style; CSS custom properties usually do not. Close the tab to drop the draft. Nothing is uploaded.