CONSTANT_CASE Converter
Convert text or identifiers to CONSTANT_CASE instantly.
This tool runs entirely in your browser. Your files are never uploaded to a server.
Convert a word sequence to CONSTANT_CASE, also called SCREAMING_SNAKE_CASE: every recognized token becomes uppercase and tokens are joined with one underscore. The tokenizer splits whitespace, `_`, `-`, `.`, `/`, lowercase-to-uppercase boundaries, and an acronym before its following capitalized word, so `APIResponse/user-id` becomes `API_RESPONSE_USER_ID`. Repeated supported separators collapse during tokenization, but other punctuation can remain attached to a token. The output is generated locally for copying and does not validate reserved names, environment-variable syntax, shell portability, or project-specific naming rules.
Frequently Asked Questions
- What is CONSTANT_CASE used for?
- It's the standard convention for naming constants and environment variables across most programming languages, such as "MAX_RETRY_COUNT" or "API_BASE_URL".
- Can I convert from camelCase or kebab-case to CONSTANT_CASE?
- Yes — the tool splits your input on underscores, hyphens, dots, spaces, and existing camelCase/PascalCase boundaries before rejoining it in uppercase with underscores, so it works from any of those styles.
- Is CONSTANT_CASE the same as SCREAMING_SNAKE_CASE?
- Yes, they're two names for the same format — all-uppercase words joined by underscores.