Slugify — turn any string into a URL-safe slug

Strings to URL slugs — diacritics removed, spaces dashed, lowercased.

Slugs are the human-readable parts of URLs and file names: 'How to Cook Pasta — A Beginner's Guide' becomes 'how-to-cook-pasta-a-beginners-guide'. This tool does the conversion correctly: lowercases, strips diacritics (é → e, ü → u, ñ → n), transliterates common non-Latin scripts (best-effort), removes punctuation, collapses whitespace into single dashes, and trims leading/trailing dashes. You can configure the separator, max length, and whether to preserve case. Useful for blog post URLs, S3 object keys, branch names, and anywhere else you need a deterministic, URL-safe identifier from arbitrary user input.

Related tools

  • URL encoder & decoder — percent encoding online
  • UUID generator — version 4 random IDs in your browser
  • Regex tester — live match highlighting & replace preview
  • Lorem ipsum generator — words, sentences, paragraphs