Type any text and get a clean, URL-friendly slug instantly. Handles accents, spaces, and special characters. Nothing sent to any server.
A slug is the URL-friendly version of a string of text — typically a page title. It uses only lowercase letters, digits, and hyphens (or underscores), making it safe to use in a URL without percent-encoding.
For example, the title My Café Review: 5 Best Spots! becomes the slug my-cafe-review-5-best-spots. Most CMSs (WordPress, Ghost, Contentful) generate these automatically, but this tool lets you preview or customize one before publishing.
Google recommends using hyphens over underscores in slugs because hyphens are treated as word separators, which improves keyword recognition in search results.
Is my text processed on a server?
No. The entire conversion runs in your browser using JavaScript. Your text never leaves your device and is never sent to any server.
Which special characters does it remove?
Any character that is not a letter, digit, or the chosen separator is removed. Accented characters (á, é, ü, ñ, ç, etc.) are first converted to their closest ASCII equivalent before the rest of the cleanup runs.
Does it handle accented or non-Latin characters?
Yes. The tool normalizes Unicode (NFD) to decompose accented characters into base letters plus combining marks, then strips the combining marks. So "café" becomes "cafe" and "año" becomes "ano". Characters without a Latin equivalent (e.g. Arabic, Chinese) are removed.
What is the difference between a slug and a URL?
A URL is the full web address (e.g. https://example.com/blog/my-post/). A slug is just the human-readable, URL-safe segment that identifies the page — in this case "my-post". Slugs are typically the last path segment and are generated from a page's title.
Is there a character limit?
Not by default. You can set an optional max-length in the options and the tool will truncate cleanly at a word boundary (no trailing separator).
When should I use underscore instead of hyphen?
For public-facing URLs and SEO, hyphens are the standard and recommended by Google. Underscores are sometimes used in internal identifiers, database keys, or Python/Ruby variable conventions where a slug is used as a code-safe string rather than a URL path.
TextForge is a free Chrome extension that transforms, cleans, and extracts text right from any webpage or tab — no copy-paste required.
Get TextForge — Free on Chrome Web Store →