Generate slug

Turn a title into a lowercase, separator-delimited route candidate with package-defined transliteration.

freeworks offlinenothing uploaded
ToolSlug Generator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

The installed slugify package applies its character map, replaces separator runs, optionally removes special characters, lowercases, and trims replacements from both ends. The result remains a label transformation rather than a uniqueness or URL-security guarantee.

  • Hyphens, lowercase, strict removal, and edge trimming create a conventional single path segment.
  • Applications still need collision handling and safe URL construction around that segment.

Worked example

Blog Post Title
Convert an article title to a URL-friendly slug
Input
											How to Build REST APIs with Node.js
										
Output
												how-to-build-rest-apis-with-nodejs
											

When to use this

CMS entries derive article paths, static-site generators name routes from headings, and fixtures turn product labels into route candidates.

Edge cases

  • Different titles can collapse to the same result after punctuation and case disappear.
  • Non-Latin transliteration follows the package character map and can lose distinctions in the source script.
  • Slashes and question marks are removed in strict mode rather than creating a nested path or query.

References