Simple online tools for developers, networking, text and conversions.

Text Tools

Constant Case Converter

Convert text into CONSTANT_CASE for constants, enums, and environment keys.

Tool

Use this constant case converter to turn text into CONSTANT_CASE format for constants, enum values, environment variable names, and configuration labels.

About this tool

Use this constant case converter to turn text into CONSTANT_CASE format for constants, enum values, environment variable names, and configuration labels.

Use constant case converter when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

Learn more

Why use this tool

How to use

  1. Paste or type your text into the input box.
  2. Run the tool to convert the text into CONSTANT_CASE.
  3. Review the output and copy the result into your code or config.
  4. Check related tools if you need lowercase separated formats instead.

Examples

Example

Input

hello world example

Output

HELLO_WORLD_EXAMPLE

Words are uppercased and separated with underscores.

Example

Input

api base url

Output

API_BASE_URL

Useful for constants and environment-style variable names.

Common errors

Expecting lowercase snake_case output.

Fix: Use Snake Case Converter when you need lowercase identifiers.

Pasting messy text with many symbols.

Fix: Review the converted output and clean the source text if necessary.

Using this tool for normal sentence formatting.

Fix: Use case tools only when you need code-style or config-style naming.

FAQ

What is CONSTANT_CASE?

CONSTANT_CASE is a naming style where words are uppercase and separated with underscores.

Who uses constant case?

Developers often use it for constants, environment variables, and enum values.

Does this tool remove spaces?

Yes. It turns spaces and common separators into underscores and uppercases the result.

How is constant case different from snake case?

Constant case is uppercase with underscores, while snake case is lowercase with underscores.

Can I paste mixed text or hyphenated phrases?

Yes. The tool normalizes common separators and converts the text into CONSTANT_CASE.

Use cases

Related tools