SCREAMING_SNAKE_CASE Converter - Uppercase Constants
What is a SCREAMING_SNAKE_CASE converter?
A SCREAMING_SNAKE_CASE converter turns phrases into uppercase words separated by underscores. It’s the go-to style for constants, environment variables, and feature flags in many codebases. Processing stays in your browser, keeping inputs private.
How to use the SCREAMING_SNAKE_CASE converter
- Enter text: Paste a phrase or label.
- Convert: Click Convert to get SCREAMING_SNAKE_CASE output.
- Copy or download: Copy the result or save it as a snippet for your config or code.
Why use this tool?
- Readable constants: Make configuration keys easy to spot.
- Team consistency: Standardize naming across services and repos.
- Local privacy: No text leaves your device.
Use case 1: Environment variables
Turn database url into DATABASE_URL for .env files.
Use case 2: Feature flags
Create flags like PAYMENTS_CHECKOUT_ENABLED for toggling features.
Use case 3: Shared constants
Define shared constants in uppercase so they stand out in code reviews.
Examples
Basic example
Input: api key
Output: API_KEY
Advanced example
Input: max concurrent jobs
Output: MAX_CONCURRENT_JOBS
Common errors
Extra underscores
Multiple spaces or punctuation can create double underscores. Collapse whitespace before converting.
Numbers and symbols
Numbers remain; unsupported symbols are removed. Add them back if required.
Tips and proven approaches
- For variables, switch to the camelCase converter.
- For URLs, use the kebab-case converter.
- Clean input with the remove formatting tool to remove hidden characters.
Related tools
- Create dot-separated keys with the dot.case converter.
- Convert to snake_case using the snake_case converter.
Privacy and security
Conversion happens locally in your browser. No text is uploaded or stored.