Generador de slug de URL
Convierte un título en un slug de URL limpio y apto para SEO, con acentos bien tratados. Todo el procesamiento ocurre en tu navegador; tus datos nunca se envían al 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.
Cómo usarlo
- Paste your title. Punctuation, accents and multiple spaces are all fine.
- Choose your separator — hyphens are the convention for URLs, underscores for filenames.
- Copy the slug straight into your CMS, filename or route definition.
- Keep slugs short. Three to six meaningful words reads better in search results than a full sentence.
Preguntas frecuentes
- 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.