1001Ferramentas
🍢 Text

To kebab-case

Convert text to kebab-case: lowercase separated by hyphens. Standard for friendly URLs (slugs), CSS files and HTML attributes.

URL slugs without accents or spaces

The headline is ready, São Paulo: Ação em 2024, and you still need the URL. Typing the slug by hand is where the accent that breaks the link when copied sneaks in, along with the space that turns into %20 and the capital letter that ends up creating two pages for the same content. Paste the title and you get sao-paulo-acao-2024, ready for the URL, the CSS file name or an HTML attribute.

The separator is the hyphen, which is what a URL expects: search engines read hyphens as word boundaries, underscores much less so. Word splitting strips accents by decomposition, drops punctuation and also breaks camelCase, so minhaPagina becomes minha-pagina and foo_bar becomes foo-bar. Symbols vanish instead of becoming words: Preço Unitário (R$) ends as preco-unitario-r, with that stray r left by the currency sign.

Review before publishing. The tool does not trim length or drop stop words, so a long title returns a long slug and the editing is up to you. A CSS class starting with a digit, like 2024-vendas, needs escaping to work in a selector. The box treats everything you paste as a single slug, line breaks included, so convert one title at a time. Processing happens in your browser and nothing is uploaded.

Frequently asked questions

Hyphen or underscore in a URL?
Hyphen. Search engines read hyphens as word separators, while underscores tend to glue the terms together. Keep underscores for variable and column names.
Does it shorten long slugs or remove stop words?
No. Everything you paste shows up in the result, in the same order. Trimming it is your call.
Is the output safe as a file name?
Yes. Only lowercase letters, digits and hyphens survive, which every file system and web server accepts without escaping.

Related Tools