Skip to content
  • 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 THE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG PARSE_HTTP_RESPONSE_FROM_USER_PROFILE_DATA

Processed locally in your browser — nothing is uploaded.

Free Convert Text to CONSTANT_CASE by pGento

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

InputCONSTANT_CASE
user profile settingsUSER_PROFILE_SETTINGS
getHTTPResponseCodeGET_HTTP_RESPONSE_CODE
Total_Order-AmountTOTAL_ORDER_AMOUNT
the lord of the ringsTHE_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.
Convert Text to CONSTANT_CASE

Embed this tool on your site

Paste this code into any web page. It stays free, fast and ad-free inside your site.

Print or save as PDF

Prints just this tool and its result. Choose “Save as PDF” as the printer to get a file. Branding is stored only in this browser.