CONSTANT_CASE Converter Privacy: All processing runs locally
Convert text to CONSTANT_CASE. Replaces spaces and hyphens with underscores and uppercases everything.
How It Works
The CONSTANT_CASE converter transforms any text into CONSTANT_CASE format, also known as screaming snake case. In CONSTANT_CASE, all letters are uppercased and words are separated by underscores (_).
This tool intelligently handles multiple input formats:
- Regular text —
hello worldbecomesHELLO_WORLD - camelCase —
myVariableNamebecomesMY_VARIABLE_NAME - PascalCase —
MyClassNamebecomesMY_CLASS_NAME - kebab-case —
my-componentbecomesMY_COMPONENT - snake_case —
my_variablebecomesMY_VARIABLE
CONSTANT_CASE is the standard naming convention for constants in JavaScript, Java, C, C++, Python, and many other languages. It signals that a value should not be reassigned after initialization, making code more readable and intentions clearer.
All processing runs entirely in your browser using JavaScript. No text is transmitted to any server, making this tool safe for converting sensitive identifiers or proprietary code.