What is Kebab Case?
Kebab case is a text format where all words are written in lowercase and separated by hyphens (-).
It’s called “kebab case” because the hyphens look like little skewers connecting the words—just like pieces of food on a kebab stick 🥙.
Example:
- Normal text → Kebab Case Converter Tool
- Kebab Case → kebab-case-converter-tool
How to Use the Kebab Case Converter
Enter Your Text: Type or paste your regular text into the large input box.
Choose Your Format: Click one of the blue buttons at the bottom to convert your text instantly:
- lower kebab case: Converts text to lowercase with hyphens (e.g.,
my-project-title). - UPPER KEBAB CASE: Converts text to uppercase with hyphens (e.g.,
MY-PROJECT-TITLE).
Check Statistics: View real-time details below the box, including word count, character count, and sentence count.
Copy Result: Click the Copy icon (top right of the text box) to copy the converted string to your clipboard, or use the X icon to clear the text and start over.
Where is Kebab Case Used?
1. SEO-Friendly URLs
Search engines love kebab-case URLs because they’re clean, readable, and properly separated with hyphens.
Example:
- Bad URL →
example.com/Best_SEO_Tools - Good URL →
example.com/best-seo-tools✅
2. Web Development (CSS & HTML)
Developers often use kebab-case for naming CSS classes, IDs, and HTML attributes because it’s consistent and avoids confusion.
Example:
.main-header {
background-color: #000;
}
.text-center {
text-align: center;
}
3. File Naming
When working on projects, kebab case is great for naming files and folders because it avoids spaces (which can break paths).
Example:
- my-project-report.pdf
- web-development-tools.zip
4. Readable Documentation
Kebab case makes technical documentation and shared resources easier to read. Instead of cramming words together, hyphens provide a natural break.
5. API Endpoints
In RESTful APIs, kebab-case is commonly used for clean and readable endpoint naming.
Example:
/get-user-data/update-product-info
FAQs
Why is it called kebab case?
It’s called kebab case because the hyphens connecting the words look like pieces of food strung together on a kebab skewer 🥙.
How is kebab case different from snake case?
kebab-case → uses hyphens, all lowercase (user-profile-settings)
snake_case → uses underscores, all lowercase (user_profile_settings)
Kebab case is preferred in URLs, while snake case is common in Python programming.
Can I convert long paragraphs into kebab case?
Yes! There’s no strict limit. You can convert single words, long sentences, or even entire paragraphs. The tool will handle it instantly.