CONSTANT_CASE Converter
Converts a phrase into an uppercase constant joined by underscores, often used for environment variables.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Use this to name constants in code or environment variables in .env files, Docker or CI config, for example turning a max orders heading into SO_DON_TOI_DA.
Digits are kept and all Vietnamese accents are removed. If the phrase is already in camelCase like maxRetry, it is still split correctly into MAX_RETRY.
How to use
- Paste your text into the left box.
- The result appears instantly.
- Click Copy or Download.
Frequently asked questions
Is my text sent to a server?
No. The tool runs entirely in JavaScript in your browser, and the text you paste never leaves your device.
Why were the accents removed from my text?
Variable names, file names and config keys with Vietnamese accents easily cause errors in many programming languages and systems, so the tool removes the accents and turns đ into d.
Related tools
More Text tools
dot.case ConverterConverts a phrase into dot.case, used for configuration keys and language translation keys.kebab-case ConverterConverts a phrase into kebab-case, used for file names, CSS classes and URLs.path/case ConverterConverts a phrase into a lowercase path-style string with words joined by slashes, for example product/new/item.Alternating Case Text GeneratorConverts text to an aLtErNaTiNg upper and lower case style for funny posts and jokey comments.PascalCase ConverterConverts a phrase into PascalCase, often used to name classes and interface components.Invert Case (Swap Upper and Lower)Turns uppercase into lowercase and the other way around, a quick fix for text typed with Caps Lock on by mistake.
See all text tools