Text to slug conversion turns a title or phrase into a lowercase URL-style identifier with a selectable maximum of 1–200 Unicode code points.

For a beginner, the important choice is not merely “remove spaces.” You also need to decide which characters the destination system should keep, which separator it expects, and how strictly the result must fit. The Text To Slug tool makes those rules explicit instead of applying hidden language conversions.

A slug is only one segment of a web address or identifier. It does not include a domain, path slash, file extension, or percent encoding. Knowing that boundary prevents you from treating the generated value as a complete URL.

text to slug for beginners
Text to Slug for Beginners: A Simple Workflow

Start with the Part You Control

Use a slug for a draft page path, a proposed filename, an anchor, a note key, or another identifier whose exact character set matters. Begin with the title as written rather than trying to pre-clean punctuation by hand.

  1. Enter the title or phrase. Paste or type the text you want to convert. The input may contain up to 100,000 UTF-16 code units. Empty input, malformed Unicode, and input beyond that limit are rejected rather than silently shortened.
  2. Choose the output rules. Select either a hyphen or an underscore, set a maximum from one through 200 Unicode code points, and decide whether non-Latin Unicode letters and numbers should be retained. That last decision selects between ASCII and Unicode behavior.
  3. Create the slug. Generate the result from the title and selected options. The tool first applies Unicode NFKD normalization, removes combining marks, converts letters to lowercase, and then keeps or removes characters according to the selected mode.
  4. Inspect and download. Review the exact characters and displayed length in the preview. If the result is correct, download it as a TXT file containing the slug value in UTF-8 plain text.

You do not need to remove every apostrophe, ampersand, or non-Latin character yourself. The selected rules determine how each one affects the result. Editing any field clears the previous output, so create a fresh slug after changing the title or an option.

Choose ASCII or Unicode Mode

The most important choice for a new user is whether the destination needs a restricted ASCII identifier or can support characters from multiple writing systems.

Mode Characters retained Best fit Important limitation
ASCII mode Lowercase a–z and digits zero–nine after NFKD normalization ASCII-only or older systems that require predictable Latin characters Letters without an ASCII base are removed and may leave nothing usable
Unicode mode Characters classified as Unicode letters or numbers after normalization CMS, router, or file workflows designed to support international text Older software may handle the characters less consistently

ASCII mode does not perform a hand-written transliteration. For example, “Crème brûlée” becomes “creme-brulee” when the hyphen separator is selected. The accented characters decompose under NFKD, their combining marks are removed, and the remaining letters are already ASCII. This same accent-handling rule also applies in Unicode mode, so Unicode mode is not an accents-preserving switch.

Unicode mode makes a difference for letters that remain Unicode characters after normalization. Chinese, Arabic, Cyrillic, Greek, and other scripts can remain in the slug rather than being replaced with approximate Latin spellings. Punctuation and symbols still become separators. For a more detailed comparison, see Text to Slug Example: ASCII and Unicode Outputs.

In ASCII mode, a letter that cannot decompose to an ASCII base is removed as part of the surrounding separator run. If no characters remain, the tool returns an explicit error instead of an empty slug. Switch to Unicode mode when the destination can support the original language.

The tool deliberately avoids language-specific substitutions. It does not convert Chinese to Pinyin, Cyrillic to Latin, German sharp s to “ss,” or an ampersand to a word. Its normalization behavior follows the browser’s standard string-normalization implementation, described in MDN’s String.normalize documentation and the normalization forms defined in Unicode Standard Annex #15.

Set the Separator and Length Ceiling

A slug should match the format expected by the system that will store it. The tool offers two separator choices and a precise output limit.

Setting Available rule What to check
Separator Hyphen or underscore Choose the character your CMS, filename, or identifier convention already uses
Maximum length One through 200 Unicode code points Treat it as a hard ceiling rather than a complete-word guarantee
Input capacity Up to 100,000 UTF-16 code units Oversized, empty, or malformed input is rejected
Download format UTF-8 plain text The file contains the slug value, not a complete address

Every consecutive run of spaces, punctuation, symbols, and disallowed characters becomes at most one separator. Leading and trailing separators are removed. Existing hyphens and underscores are treated like other boundary characters, so a title containing mixed separators is normalized to the separator you selected.

Length is applied after conversion and counts Unicode code points in the generated value. If the result is too long, the tool truncates it at the ceiling and removes a trailing separator. It does not preserve the complete final word, so a maximum-length slug may end in the middle of one. The preview shows the exact result rather than a shortened word-oriented approximation.

Check the Preview Before Using It

Read the preview character by character when the slug will become a permanent identifier. Check that the selected separator appears consistently, no unwanted boundary separators remain, and the expected letters or numbers were kept. Also confirm that the displayed length is within the maximum you selected.

Different titles can produce the same normalized value. An ASCII-only title and a Unicode title may also collapse to the same result if only the removed characters distinguish them. If the preview exposes an unintended collision risk, adjust the source title or use your site’s stable-identifier system rather than assuming the slug itself is unique.

The generated value is only the slug segment shown in the preview. The tool does not add a domain, path slash, file extension, or percent encoding. Browsers may display a percent-encoded form when a Unicode slug is copied between systems, but that display behavior does not change the underlying slug. Choose the mode according to the actual CMS, router, analytics, and editorial policy instead of assuming one format works everywhere.

Know Where a Slug Fits

Generated slugs are useful for draft URLs, filenames, anchors, CSS-like identifiers, note keys, and CMS planning. They provide a consistent, lowercase form without requiring you to apply each punctuation and normalization rule manually.

A slug does not reserve a URL or guarantee uniqueness. Two different titles can normalize to the same value, and truncating to the chosen maximum increases the possibility of collisions. The destination system should check uniqueness and append a stable identifier when necessary.

The tool also does not inspect reserved routes, filesystem names, database constraints, case-insensitive collisions, or an existing site’s URL inventory. Check those rules separately before publishing or saving the final identifier. A generated slug can make a draft URL readable, but it does not by itself guarantee search-engine performance or availability on the destination site.

Processing and Download Stay Local

Normalization, filtering, previewing, and conversion all happen locally in the browser. The title and generated output do not take part in a network conversion service, and no account or stored conversion history is involved. The tool uses an explicit rule sequence rather than a hidden transliteration dictionary.

When you download the result, the browser creates a temporary UTF-8 Blob URL at click time and revokes it immediately after the transfer starts. This local workflow makes it possible to inspect the precise slug before passing it into a CMS, file naming convention, or development workflow.

Related reading: Translate to Wingdings 3: The Accurate Workflow.