OnlineNotes Logo

URL Slug Generator

Turn titles and phrases into clean slugs for SEO-friendly URLs, static routes, and file names.

Input

Output

Input lines

0

Generated slugs

0

Longest slug

0

When to use this tool

Use this slug generator to create consistent URL paths for blog posts, docs pages, and static content routes.

Batch mode helps content teams prepare many slugs in one step.

Frequently asked questions

What is a slug generator used for?

A slug generator converts titles or phrases into URL-safe text for blog routes, docs links, and file names.

Can I generate multiple slugs at once?

Yes. Enable batch mode and enter one phrase per line to generate multiple slugs in one pass.

Does this slug tool remove special characters?

Yes. It removes punctuation, normalizes spacing, and keeps a clean separator format for URL safety.

Related tools

Slug generator online for SEO-friendly URLs and route naming

This slug generator online turns post titles and document names into URL slugs with one separator style and an optional length limit.

Batch mode handles one title per line, which suits a content calendar. Add a base URL to see how each full address will read.

How it works

  1. Type titles in the input, one per line. With Batch on (the default), each line becomes one slug. With Batch off, the whole input becomes a single slug.
  2. Each title is processed in order: accents are stripped, & becomes "and", anything other than a to z and digits becomes the separator, repeated separators collapse, and separators at the ends are removed.
  3. Options: hyphen or underscore separator, Max length (default 80, 0 or empty for no limit), Force lowercase (on by default), and a base URL. Typing in the input updates the result. An option applies once you change it and leave the field.
  4. Counters show input lines, generated slugs, and the longest slug. The Full URLs view adds the base URL in front of each slug.

Worked example

Input

10 Tips for Café Owners!
R&D: What's Next?
日本語

Output

10-tips-for-cafe-owners
r-and-d-what-s-next

Default options. The accent on "Café" is removed, "&" becomes "and", and the apostrophe splits "What's" into "what-s". The third line has no Latin letters or digits, so it produces no slug at all, and the output has one line fewer than the input.

Edge cases and limits

  • Only accents that Unicode can separate are converted. "Über" gives "uber", but "Straße" gives "stra-e", because ß is not an accented s. Text in Cyrillic, Hindi, Japanese, or similar scripts is removed, not transliterated.
  • Max length cuts at the character, not the word. With a limit of 15, "How to choose a domain name" gives "how-to-choose-a", and a longer limit can stop in the middle of a word.
  • Copy output copies the view you have open, slugs or full URLs. The base URL is not checked: trailing slashes are removed, and anything else is used as typed.
  • Stop words such as "the" and "of" stay, duplicate titles give duplicate slugs with no number added, and a dot becomes a separator, so "photo.png" gives "photo-png".

When to use it

  • Make blog post slugs from a list of titles.
  • Prepare static route names for documentation pages.
  • Clean up document names before you add a file extension.
  • Check full URLs with a base domain before publishing.