Gerador de slug de URL

Transforme um título num slug de URL limpo e otimizado para SEO, com acentos tratados. Todo o processamento acontece no seu navegador; seus dados nunca são enviados ao servidor.

A slug is the readable part of a URL: the "url-slug-generator" in this address. Good slugs are lowercase, use hyphens, and contain only characters that survive being copied, pasted and shared. This generator handles accented and non-Latin characters properly, which is where most naive slug code breaks.

Como usar

  1. Paste your title. Punctuation, accents and multiple spaces are all fine.
  2. Choose your separator — hyphens are the convention for URLs, underscores for filenames.
  3. Copy the slug straight into your CMS, filename or route definition.
  4. Keep slugs short. Three to six meaningful words reads better in search results than a full sentence.

Perguntas frequentes

Why hyphens instead of underscores?
Search engines treat a hyphen as a word separator and an underscore as a word joiner. "url-slug" is two words to a crawler; "url_slug" is one.
How are accented characters handled?
They are transliterated to their closest ASCII equivalent — é becomes e, ü becomes u, ş becomes s. Turkish ı and İ are mapped explicitly, because Unicode decomposition alone gets them wrong.
Should I change a slug after publishing?
Avoid it. The old URL becomes a 404 and any links pointing at it lose their value. If you must, set up a 301 redirect from the old slug to the new one.
Can slugs contain numbers?
Yes, and they are often useful — a version number or a year adds context. Only symbols and whitespace are stripped.
Ferramentas de desenvolvedor