Text to Slug Converter
Slug
About Text to Slug Converter
Turn a title, product name, or sentence into a clean, URL-safe slug — accents stripped, punctuation removed, and a separator of your choice.
A slug is the part of a URL that identifies a specific page — lowercase, no spaces, no punctuation a browser or server would need to escape. Typing one out by hand for every blog post or product page is repetitive and easy to get inconsistent; this generates it directly from the real title.
Accented and non-Latin-adjacent characters are converted to their closest plain-ASCII equivalent rather than stripped outright — "Café" becomes "cafe", not "caf" — because dropping the letter entirely changes the word instead of just normalizing it.
The separator, casing, and an optional maximum length are all adjustable, since not every platform wants the same style: some CMSs default to hyphens, some to underscores, and a long title sometimes needs truncating to keep a URL from becoming unwieldy.
What a good slug looks like
A readable slug is short, lowercase and descriptive: Best Café in Paris becomes best-cafe-in-paris. Accents are reduced to their plain letter, punctuation is dropped and spaces become your chosen separator. Hyphens are the convention because search engines treat them as word breaks, whereas underscores can join words together.
Choosing the settings
Pick a hyphen for page URLs, an underscore for file or database identifiers that must be a single token in some tools, or no separator where a platform forbids both. Setting a maximum length trims the slug at the limit and removes any leftover separator, which suits platforms that cap URL length; it cuts by characters, so check that the final word still makes sense.
Non-Latin scripts such as Hindi, Arabic or Chinese are kept rather than stripped, because deleting them would leave an empty slug. Some systems encode such a slug into percent-escapes in the URL; if your platform wants a plain ASCII URL, write an English slug by hand.
Slugs and SEO
Pick a slug once and leave it. Changing it later changes the URL, and links from elsewhere break unless you add a redirect. Keep the main words of the title, drop filler such as the, a and of if the slug gets long, and avoid dates unless the page is genuinely about one moment. Make slugs unique per page; two pages with the same slug will conflict on most systems.
What you can use it for
- Generate a URL slug from a blog post or article title.
- Create a clean product-page or category URL from a product name.
- Turn a file name into a web-safe identifier.
- Convert a title with accented characters into a plain-ASCII slug.
- Build a consistent, lowercase, hyphenated ID from arbitrary text.
How it works, step by step
- 1
Type or paste your text
A title, name, or sentence.
- 2
Choose a separator and casing
Hyphen, underscore, or none; lowercase on or off.
- 3
Copy the slug
The result updates live as you type.
Frequently asked questions
What happens to accented characters?
They're converted to their closest plain letter — "é" becomes "e", not removed — so the word stays recognizable instead of losing a letter.
Can I use a separator other than hyphen or underscore?
Yes, the separator field accepts any text, though hyphen is the URL-slug convention almost every platform expects.
Why would I set a max length?
Some platforms and SEO guidelines prefer a URL slug under a certain length. Truncation trims any trailing separator left over from the cut, so it never ends mid-separator.
Is my text sent anywhere?
No. The conversion runs entirely in your browser.