Case Converter - MacigHub

Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and more. Batch or single line.

Popular tools: Base64 · JSON Diff · UUID · QR Code · Regex · Password

About this tool

What does it convert?

Programmers juggle naming conventions: camelCase (JavaScript), PascalCase (classes), snake_case (Python/Ruby), kebab-case (URLs/CSS), CONSTANT_CASE (env vars). This tool translates identifiers between them and handles bulk lists.

How to use it

  • Paste identifiers and pick the target case.
  • Convert whole lists at once for refactors.
  • Chain with slugify for URL-safe output.

Examples

  • API field user_name → frontend userName.
  • CSS class main-container → JS constant MAIN_CONTAINER.
  • Normalizing 200 column names before a database migration.

Important limitations

  • Acronyms are ambiguous: HTTPSConnection may split as H-T-T-P-S or HTTPS depending on rules — review output.
  • Numbers and non-ASCII letters follow heuristics, not standards; verify edge cases.
  • Case conversion never renames semantics — update references everywhere.

Privacy

Pure string math in your browser. Internal identifiers stay local.

Frequently asked questions

camelCase or snake_case?

Follow the language’s community standard — consistency beats preference.

Why did my acronym split weirdly?

Heuristics guess word boundaries; check consecutive capitals by hand.

Does it handle non-English text?

Basic Latin reliably; other scripts depend on Unicode word rules — spot-check.

Related tools

Slugify · Regex tester · List converter