Home Text Tools Encoding Hashing Generators Developer Converters Text Styles Image Tools

CONSTANT_CASE Converter Privacy: All processing runs locally

Convert text to CONSTANT_CASE. Replaces spaces and hyphens with underscores and uppercases everything.

Input 0
Output 0

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 texthello world becomes HELLO_WORLD
  • camelCasemyVariableName becomes MY_VARIABLE_NAME
  • PascalCaseMyClassName becomes MY_CLASS_NAME
  • kebab-casemy-component becomes MY_COMPONENT
  • snake_casemy_variable becomes MY_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.