Skip to content
uencoder
TASK

Convert between camelCase, snake_case, kebab-case, and PascalCase

Transform identifiers between naming conventions used by different languages and contexts.

  1. 1

    Different languages prefer different conventions: camelCase for JS/Java, snake_case for Python/Rust, kebab-case for CSS/URLs, PascalCase for types/classes. Converting between them is mechanical but error-prone by hand.

  2. 2
    Naming Convention Converter →

    Paste an identifier in any convention. The tool detects the source convention and outputs all others: camelCase, snake_case, kebab-case, PascalCase, UPPER_CASE, dot.case.

  3. 3
    Case Converter →

    For bulk text conversion (not just identifiers), use this tool to convert entire strings between cases.

  4. 4
    text-trim → case-convert → sort-unique

    Use the chain to normalize a list of identifiers to one convention and sort them — useful for generating consistent API field names or enum values.

Frequently asked questions

How are word boundaries detected?
By camelCase transitions (lowercase→uppercase), underscores, hyphens, and spaces. Consecutive uppercase letters (e.g. 'HTTPServer') are treated as an acronym: 'HTTP' + 'Server'. The tool handles common patterns but ambiguous cases (single-letter words) may need manual review.
Will conversion preserve acronyms?
Basic converters lowercase everything then re-case, losing acronym casing (HTTPServer → httpServer). Smarter converters preserve recognized acronyms. Check the output and manually fix acronyms if needed.

Workflows that solve this

Convert naming case and validate as JSON
Convert identifiers to a target naming convention, then validate the output as JSON to confirm structure.
PIPELINE
Normalize case then sort and deduplicate
Convert all text to lowercase then sort lines alphabetically and remove duplicates.
PIPELINE
Hex-encode text and analyze
Convert text to its hexadecimal representation then compute character statistics on the hex output.
PIPELINE
Normalize and sort identifiers
Clean whitespace, convert to lowercase, then sort and deduplicate a list of identifiers.
PIPELINE
Format raw XML document
Pretty-print a minified or unformatted XML document for human review.
PIPELINE
Clean text then analyze word statistics
Trim and normalize text, then compute word/character/line statistics.
PIPELINE
Clean and sort text lines
Trim whitespace from every line, then sort and deduplicate the result for a clean canonical list.
PIPELINE
Dedent Text and Trim
Remove common indentation then trim whitespace.
PIPELINE
Deduplicate lines and count words
Sort and remove duplicate lines, then count the remaining words to get a quick inventory.
PIPELINE
Trim, dedupe, and sort lines
Clean a list: trim whitespace from every line, remove duplicates, and sort the result.
PIPELINE
Extract Emails and Sort Unique
Extract email addresses then sort and deduplicate.
PIPELINE
Trim Text and Deduplicate Sort
Trim whitespace then sort and deduplicate lines.
PIPELINE
Normalize whitespace and wrap text
Clean up messy text by trimming lines, removing blank lines, then wrapping to a readable line width.
PIPELINE

Learn more

Want to understand why?

Related tools