pipr.tools
Pipes
Clean Email Strip formatting from pasted email for clean plain text Clean AI Output Clean plain text from ChatGPT or AI output Decode & Format JWT Decode a JWT and pretty-print header and payload Word Frequency Count word frequency in text

slugify Convert text to URL-safe slug

Aa Text
Input0 chars
Output0 chars

Examples

Slugify a blog post title for the URL

Usage
"My Blog Post: A Great Title!" | slugify

Create a URL slug for a campaign landing page

Usage
"Summer 2025 — 40% Off Everything!" | slugify

Generate a clean filename from a document title

Usage
"Meeting Notes: Q4 Budget Review (Final Draft)" | slugify
View source
(input)=>input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_]+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "")

Also useful for