Slug Generator
Turn a title or phrase into a clean, readable slug for a web address. Accents are removed, symbols are dropped, words are joined with the separator you choose, and you can limit the length. For Arabic text you decide whether to keep the Arabic letters, write them in Latin letters, or remove them. Paste several lines to get one slug per line. Everything runs in your browser.
Result
Slug
As it appears in an address bar
Non-ASCII letters are sent as percent-encoded bytes. This is how the address looks when copied from a browser.
- Slugs
- Characters removed
- Shortened
Examples
Examples with the default settings:
| Text | Slug | Arabic setting |
|---|---|---|
| Hello, World! | hello-world | — |
| Crème brûlée à la maison | creme-brulee-a-la-maison | — |
| Straße Größe | strasse-grosse | — |
| Top 10 tools of 2024 | top-10-tools-of-2024 | — |
| مرحبا بالعالم | مرحبا-بالعالم | Keep Arabic letters |
| مرحبا بالعالم | mrhba-balaalm | Write in Latin letters |
Formula & Methodology
The text is decomposed so that accents become separate marks and are removed (é becomes e), special letters are written in plain letters (ß becomes ss, æ becomes ae), and Arabic diacritics and the elongation mark are removed. Everything that is not a letter or digit becomes a separator, repeated separators collapse into one, and separators at the ends are trimmed.
Arabic and Persian digits are always written as ASCII digits (٢٠٢٤ becomes 2024).
Notes and limitations
- Keeping Arabic letters gives readable Arabic addresses. They work in modern browsers, but are shown percent-encoded when copied.
- Transliteration is a simple consonant table, not a full romanization standard, and it cannot know short vowels. Check names before publishing.
- Scripts other than Latin and Arabic (Cyrillic, Chinese and so on) are kept with the keep setting and removed otherwise, and the number of removed characters is shown.
- A slug cannot be guaranteed unique: if two titles give the same slug, your site must add a number or an id.
- The slug never contains slashes, spaces, quotes, angle brackets or percent signs, so it is safe to place in a path.
How to Use
- Type or paste your title. Use one line per slug.
- Choose the separator, letter case and length limit.
- For Arabic text, choose to keep, transliterate or remove it.
- Copy the slugs or download them.
Frequently Asked Questions
What is a URL slug?
The readable last part of a web address, such as hello-world in example.com/blog/hello-world. A clean slug is short, uses simple characters and describes the page.
Hyphen or underscore?
Hyphens are the common choice for web addresses because they read as word separators. Underscores suit file names and code.
Should I keep Arabic letters in a slug?
Both work. Arabic slugs are readable for Arabic readers, while Latin slugs are easier to type and share in every setting. This tool lets you choose.
Why is the transliteration approximate?
Arabic is normally written without short vowels, so a letter-by-letter conversion cannot know them. The result is useful for a slug, but it is not a spelling standard.
Is anything sent to a server?
No. Slugs are made in your browser and nothing you enter is uploaded or sent to analytics.
Last updated: