Case Converter

Convert text between camelCase, snake_case, kebab-case, and more.

  • camelCase
  • PascalCase
  • snake_case
  • kebab-case
  • CONSTANT_CASE
  • Title Case
  • Sentence case
  • UPPERCASE
  • lowercase
  • Inverse Case

Convert text between camelCase, snake_case, and more

This case converter takes any text and shows it in ten formats at once: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, UPPERCASE, lowercase, and Inverse Case. Type or paste into the input box and every variant updates live, each with its own copy button, so a camelcase to snake case conversion or a quick uppercase fix is one paste and one click.

Developers reach for a tool like this when moving identifiers between conventions: JavaScript variables use camelCase, Python and SQL favor snake_case, CSS classes and URL slugs use kebab-case, class names use PascalCase, and environment variables or constants use CONSTANT_CASE. The converter understands word boundaries inside existing identifiers, so HelloWorldExample, hello_world_example, and hello-world-example all tokenize into the same words before being rebuilt in the target format. Kebab-case is also what search engines prefer in URLs, which is why ReSlug uses it for short link aliases.

The conversion runs entirely in your browser with nothing sent to a server, and there is no length limit beyond what your machine handles. Writers can use the Title Case and Sentence case outputs to fix headlines, and the Inverse Case row flips the capitalization of every letter in the original text.

How to convert text case

  1. Paste your text or identifier

    Enter anything in the Text box, a plain sentence, a camelCase variable, or a snake_case name. Word boundaries are detected automatically.

  2. Scan the ten output rows

    Every format appears at once: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, UPPERCASE, lowercase, and Inverse Case.

  3. Copy the format you need

    Each row has its own Copy button, so you can grab the snake_case version for Python and the kebab-case version for a URL without retyping.

  4. Edit and re-copy as needed

    Change the input and all ten rows update live. There is no convert button to press and no page reload.

Frequently asked questions

What is the difference between camelCase and PascalCase?

Both join words without separators and capitalize each word, but camelCase starts with a lowercase letter (helloWorld) while PascalCase capitalizes the first word too (HelloWorld). camelCase is common for variables and functions, PascalCase for class and type names.

How do I convert camelCase to snake_case?

Paste the camelCase identifier into the input box and copy the snake_case row. The tool splits the text at uppercase boundaries, lowercases the words, and joins them with underscores, so helloWorldExample becomes hello_world_example.

When should I use kebab-case?

Kebab-case joins lowercase words with hyphens and is the standard for URL slugs, CSS class names, and many CLI flags. Google recommends hyphens rather than underscores as word separators in URLs, which makes kebab-case the SEO-friendly choice.

What is CONSTANT_CASE used for?

CONSTANT_CASE, also called SCREAMING_SNAKE_CASE, joins uppercase words with underscores, as in MAX_RETRY_COUNT. It is the convention for constants and environment variables in most languages, including JavaScript, Python, and shell scripts.

What does Inverse Case do?

Inverse Case flips the capitalization of every letter in your original text, so uppercase becomes lowercase and vice versa. Hello World becomes hELLO wORLD. It is mostly useful for undoing an accidental Caps Lock.

Does the case converter send my text to a server?

No. All ten conversions are computed locally in your browser as you type, and nothing is uploaded or stored, so identifiers and private text never leave your device.

Naming your short link aliases?

Use kebab-case for SEO friendliness. ReSlug supports custom aliases on every short link.

Create a free account