About this tool
Convert any phrase to kebab-case — plus snake_case and dot.case.
The Kebab Case Converter rewrites a phrase as kebab-case by splitting it on every run of characters outside ASCII A-Z, a-z and 0-9, lowercasing each surviving piece and joining them with single hyphens. The same word list is also shown as snake_case and dot.case, so one paste covers the three naming conventions most projects switch between. It is for developers naming CSS classes, URL slugs, branch names and config keys who want a consistent result instead of hand-hyphenating.
Open Kebab Case Converter on AltFTool — it loads instantly in your browser.
Type or paste your phrase into the 'Text' textarea under Inputs; it starts pre-filled with 'My Variable Name Here', and input with no letters or digits left in it shows an em dash with the caption 'Enter some text'
There is no format selector and no Convert button — the Result recomputes as you type and shows all three forms at once: kebab-case on the headline line ('my-variable-name-here' for the default phrase), plus cards labelled 'snake_case' and 'dot.case'
Every run of characters outside ASCII letters and digits collapses into a single separator and the words are lowercased; press Copy to take the Text and all three forms to the clipboard, Download to save them as kebab-case-converter.txt, or Reset to restore the default phrase
Runs of spaces, punctuation and symbols collapse to a single hyphen, and empty segments are dropped, so the output is always a clean slug.
The same tokens are returned as kebab-case, snake_case and dot.case, so you can copy whichever the file you are editing expects.
Because only ASCII letters and digits survive the split, the result never contains a character that would need percent-encoding in a path.
Kebab-case is all-lowercase words joined by hyphens, as in my-variable-name. It is the standard for URL slugs, CSS class and custom property names, HTML attributes, and npm package names, because hyphens are legal and readable in all of those.
No — the split happens only at non-alphanumeric characters, so myVariableName is treated as one token and becomes myvariablename. Put spaces, hyphens or underscores between the words first if you want them separated.
Anything outside A-Z, a-z and 0-9 is treated as a separator and removed, so "Café & Bar!" becomes caf-bar. Transliterate accented or non-Latin text to plain ASCII before converting if those letters need to survive in the slug.
Use snake_case wherever the name is an identifier in code — Python variables, SQL columns, Ruby methods — because a hyphen there reads as a minus sign. Kebab-case belongs in URLs, CSS and file names, where a hyphen is just a character.
Add the Kebab Case Converter widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.
<iframe src="https://www.altftool.com/embed/widget/kebab-case-converter"
title="Kebab Case Converter — free AltFTool widget"
width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/kebab-case-converter?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>