Skip to main content
Back to Dev generators

Dev

Fake URL Slug Generator

Routing systems, CMS databases, and sitemap generators all depend on slugs that follow strict conventions: lowercase, hyphen-separated, no special characters. Using realistic slugs in test fixtures matters because real CMS slugs have specific length distributions that affect truncation logic, deduplication rules, and sitemap rendering. This generator produces slugs in four content-type flavors. Blog post slugs combine an action phrase (how-to, getting-started-with) with a technical topic (react-hooks, kubernetes), producing strings like how-to-configure-redis. Product slugs combine an adjective, a product noun, and a three-digit number, yielding items like ergonomic-usb-hub-342. Category slugs draw from taxonomy words like developer-tools. User profile slugs produce handle-style strings like alice-dev. Set count up to 50 and choose the content type that matches your route structure.

Read the complete guide — 4 min read

How to use

  1. Choose your options above
  2. Click Generate
  3. Copy your result

Detailed instructions

  1. Set the Count field to the number of slugs you need — use 10 for quick tests or 50+ for database seeding.
  2. Select a Content Type from the dropdown to match your use case: blog post, product, category, or user profile.
  3. Click Generate to produce a list of properly formatted, lowercase hyphenated URL slugs.
  4. Copy individual slugs or the full list, then paste directly into seed files, fixtures, or documentation.

Use Cases

  • Seeding a Contentful or Strapi staging database with 50 realistic blog post slugs
  • Writing Jest unit tests for slug-sanitization and deduplication logic in a Node.js CMS
  • Populating getStaticPaths return arrays in Next.js before real content exists
  • Generating product URL fixtures for Postman collection tests against an e-commerce API
  • Filling sitemap XML templates with believable category and profile paths for SEO tooling tests

Tips

  • Generate slugs in batches by content type and store them in separate fixture files to keep test data organized by resource.
  • When testing slug uniqueness logic, generate 50+ slugs and introduce duplicates manually — the generator gives you a realistic base to modify.
  • For Next.js `getStaticPaths`, wrap the output in a `params: { slug: '...' }` object using a quick find-and-replace in your editor.
  • Combine product-type slugs with a fake price generator to build complete mock product catalog entries for staging environments.
  • If your CMS truncates slugs over a certain length, use the output to identify edge cases where your truncation logic might cut a word mid-hyphen.
  • Use category-type slugs as parent path prefixes and append blog-post slugs as children to simulate nested URL structures like `/tutorials/getting-started-with-docker`.

FAQ

how do I use fake url slugs in a CMS seed script

Select your content type — blog-post, product, category, or user-profile — set the count, and click Generate. The output pastes directly into SQL seed files, JSON fixtures, or CMS import CSVs. Every slug is already lowercase and hyphenated, so no sanitization step is needed before inserting into your database.

are these fake slugs seo-friendly or just random strings

They follow standard SEO slug conventions: all lowercase, hyphen-separated words, no special characters, and a sensible length. They're built for dev and testing — the words are realistic but randomly assembled from fixed lists, so they're appropriate for fixtures but not for real content on a live site without actual content behind them.

what's the difference between a blog-post slug and a product slug

Blog-post slugs combine an action phrase with a technical topic, such as getting-started-with-typescript. Product slugs combine an adjective and a product noun plus a three-digit suffix, like premium-wireless-keyboard-512. Category slugs are single taxonomy words like developer-tools. User-profile slugs are handle-style pairs like alice-dev.

can the generator produce slugs with custom words or prefixes

No — the word pools are fixed. Blog post slugs draw from 8 action phrases and 10 technical topics. Product slugs draw from 8 adjectives, 8 product nouns, and a three-digit random number. Category and user-profile slugs draw from their respective fixed lists. For custom slugs, use the output as a template and find-replace words after copying.

You might also like

Popular tools from other categories that share themes with this one.

Try these next

More free tools from other corners of the catalog, picked by shared themes.