What is CONSTANT_CASE?
CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) writes words in uppercase and separates them with underscores, like MAX_SIZE or API_KEY. It is the conventional style for constants and environment variables in most programming languages. This tool converts any text to CONSTANT_CASE instantly in your browser.
How to use
- Paste your text into the input box.
- The CONSTANT_CASE result appears instantly.
- Click Copy to use it.
Examples
| Input | CONSTANT_CASE |
|---|---|
max size | MAX_SIZE |
apiKey | API_KEY |
default-timeout | DEFAULT_TIMEOUT |
First Name | FIRST_NAME |
Common uses
- Naming constants in code.
- Environment variable names (API_KEY, DB_HOST).
- Configuration keys that should stand out.
Frequently asked questions
What is CONSTANT_CASE?
Uppercase words separated by underscores — essentially uppercase snake_case.
Where is it used?
For constants and environment variables in nearly every language.
What happens to separators?
Spaces, hyphens and camelCase boundaries are converted to underscores.