- No data uploaded
- Instant results
Convert Text to CONSTANT_CASE
Paste or type text below and it is converted to CONSTANT_CASE as you type. Multi-line input is converted line by line, so lists of identifiers stay lists.
Convert Text to CONSTANT_CASE
84 chars
CONSTANT_CASE result
Processed locally in your browser — nothing is uploaded.
When to use CONSTANT_CASE
CONSTANT_CASE is typically used for environment variables and constants (e.g. MAX_RETRY_COUNT).
How word boundaries are detected
Words are split on spaces, punctuation, underscores and hyphens, and on case changes inside identifiers — so parseHTTPResponse becomes the words “parse”, “HTTP”, “Response”. Accented and non-Latin letters are preserved.
CONSTANT_CASE examples
| Input | CONSTANT_CASE |
|---|---|
| user profile settings | USER_PROFILE_SETTINGS |
| getHTTPResponseCode | GET_HTTP_RESPONSE_CODE |
| Total_Order-Amount | TOTAL_ORDER_AMOUNT |
| the lord of the rings | THE_LORD_OF_THE_RINGS |
Frequently asked questions
Does the CONSTANT_CASE converter upload my text?
No. Conversion runs entirely in your browser using JavaScript; nothing leaves your device.
Is there a length limit?
No hard limit. Inputs of several megabytes convert in milliseconds on modern devices.