Text to Slug Converter
Chuyển văn bản thành slug URL chuẩn SEO
Title to URL Slug Converter
This title to URL slug converter transforms any heading or page name into a clean, hyphenated slug ready to use in your CMS, routing system, or database. It automatically lowercases all characters, strips special characters and diacritics, and replaces spaces with hyphens — producing slugs that search engines can crawl and index without ambiguity. Whether you are building a WordPress site, a REST API, or a static site generator, this tool saves you the tedious manual work of formatting URLs by hand.
Benefits
Using a dedicated slug generator keeps your URLs consistent and optimized across the entire project:
- SEO-friendly output: Lowercase, hyphen-separated slugs are the format recommended by Google for readable, indexable URLs.
- No manual errors: Eliminate typos, stray uppercase letters, and accidentally encoded spaces (%20) that break links.
- Instant results: Generate a valid slug in one click instead of writing custom sanitization code each time.
- Broad character support: Handles Latin diacritics (é, ñ, ü) and Vietnamese characters so international content gets clean slugs too.
Use cases
This tool is useful across a wide range of development and content workflows:
- Setting permalink slugs for blog posts in WordPress or any headless CMS.
- Generating route segments for JavaScript frameworks like Next.js, Nuxt, or SvelteKit.
- Creating consistent product handle values in e-commerce platforms.
- Naming HTML, CSS, or asset files in a way that works reliably across operating systems.
- Building URL-safe identifiers for categories, tags, or database records.
How to use
Getting a slug takes just a few seconds:
- Step 1: Type or paste your title into the input field.
- Step 2: Click Convert — the tool lowercases text, removes special characters, and joins words with hyphens.
- Step 3: Copy the generated slug and paste it into your URL field, file name, or code.
Frequently asked questions
Does the converter handle accented characters? Yes — Latin diacritics such as é, ü, and ñ are transliterated to their plain ASCII equivalents before the slug is generated, so the output contains only URL-safe characters.
Are numbers in the title preserved? Numbers are kept as-is in the slug since they are valid URL characters. Only non-alphanumeric characters (such as !, ?, &, and #) are stripped from the output.
What is the difference between a slug and a URL path? A slug is the human-readable segment at the end of a URL that identifies a specific page (for example, title-to-url-slug-converter). A full URL path may include multiple segments; this tool generates just the slug portion, which you combine with your domain and directory structure as needed.