Kebab Case to PascalCase

Convert kebab-case strings to PascalCase class names.

Code & String Helpers

Convert kebab-case to PascalCase Online: Generate React & Vue Component Names Instantly

You are building a modern web application in React, Next.js, or Vue. Your design system files, CSS class names, and npm packages use classic hyphenated kebab-case: user-profile-card, shopping-cart-drawer, audio-waveform-visualizer.

In React and Vue, however, component classes and JSX tags strictly demand PascalCase: UserProfileCard, ShoppingCartDrawer, AudioWaveformVisualizer. Lowercase or hyphenated JSX tags are interpreted by React as native HTML elements, causing runtime errors if you get the casing wrong.

Our free kebab-case to PascalCase Converter strips hyphens and capitalizes each word boundary instantly. Convert component filenames, web component custom tags, and design token classes into clean, idiomatic PascalCase components in seconds.

Why React & Modern Frameworks Require PascalCase

When the JSX compiler (Babel or SWC) parses your JSX markup, it makes a fundamental distinction based entirely on the capitalization of the very first letter:

Lowercase / Kebab-case

<user-card /> or <card />

JSX compiles this to React.createElement('user-card'), assuming it is a native browser HTML element or W3C Web Component. If it isn't registered, styling fails and props don't bind.

PascalCase

<UserCard />

JSX compiles this to React.createElement(UserCard), correctly referencing your imported JavaScript component function or class.

Real-World Use Cases for Developers

Batch Generating Component Scaffold Files

You are scaffolding a design system with dozens of components (alert-banner, date-picker, color-swatch). Converting them into PascalCase lets you quickly generate import statements and index exports.

Vue Single File Components (SFC)

While Vue templates permit kebab-case tags in templates (e.g., <my-component>), the script setup block requires importing and registering them in PascalCase (import MyComponent from '...').

TypeScript Interface Generation

Transforming API endpoint paths like /api/v1/customer-billing-history into strong TypeScript interface names like CustomerBillingHistoryResponse.

Quick Conversion Reference Table

kebab-case (Input)PascalCase (Output)Typical Use Case
nav-barNavBarUI component definition
user-avatar-badgeUserAvatarBadgeNested design system component
payment-gateway-v2PaymentGatewayV2Versioned service class
get-user-by-idGetUserByIdGraphQL query operation

Frequently Asked Questions

Can I convert multiple lines or files at once?

Yes. Paste an entire list of kebab-case strings separated by newlines, and the tool converts each line individually, maintaining your line order.

What happens to numbers in kebab-case strings?

Numbers are preserved naturally. For example, step-1-form converts cleanly to Step1Form.

Does this tool run client-side?

Yes. The transformation runs 100% locally in your browser with zero network latency. None of your proprietary component names are ever logged or sent to external servers.