Constant Case Converter

Convert text into CONSTANT_CASE by splitting on delimiters and case boundaries, then joining uppercase words with underscores.

Description

Convert a phrase or mixed identifier into uppercase CONSTANT_CASE.

Constant case is commonly used for named constants, environment variables, and configuration keys that should be visually distinct from ordinary variables.

When to use Constant Case Converter

  • Format a constant name
  • Create an environment-variable key
  • Normalize mixed identifier styles

How the calculation works

CamelCase and acronym boundaries are split along with spaces, underscores, hyphens, and dots. Every token is uppercased and joined with one underscore.

Interpreting the result

`wordCount` exposes how `HTTPResponse` or similar input was segmented. The result normalizes rather than preserves the original spelling and separators.

Important limitations

  • No programming-language identifier grammar is enforced.
  • Normalization is not reversible.
Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies