Slug generator
Turn a title into a tidy URL slug.
- 1Add input
- 2Adjust settings
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Make a lowercase slug from a title or phrase. By default, Unicode letters and numbers can remain. Spaces, underscores and hyphens become one hyphen; other punctuation is removed, so words separated only by punctuation can run together. Choose ASCII-only output if you need a slug without non-ASCII characters.
How to use this tool
- Paste content into “Text”, or load the example to try it.
- Leave “ASCII-only output” off to allow Unicode letters and numbers, or turn it on to remove non-ASCII characters. Select “Generate slug” after choosing the setting.
- Check the slug’s spelling and separators. Use “Copy result” for the complete text, or download result.txt as UTF-8.
Supported inputs and limits
Input is limited to 1 MiB (1,048,576 UTF-8 bytes), including spaces and line breaks. A character can use more than one byte.
The result contains letters, numbers and hyphens. This tool removes other punctuation rather than turning it into a separator. It does not check whether a slug is unique, available or accepted by your website.
Empty input, or input that leaves no allowed characters, produces a zero-byte result.txt file and an empty-slug notice. Changes to the text or ASCII-only setting take effect when you run the tool again.
Worked example
Example input
Hello, 世界!
Example options
{}Example output
hello-世界
When something does not work
An empty slug is a valid result. To get usable text, turn off ASCII-only output or add letters and numbers, then select “Generate slug” again. Keep your source when a run fails and follow the error message. Editing or cancelling can leave the previous result on screen; a failed run clears it.
Frequently asked questions
Where is my text processed and kept?
The slug is generated in your browser. Switching tools can temporarily retain your input and result in the same tab. Larger results may need to be generated again. Refreshing or closing the tab clears this temporary workspace. Copy or download a result you want to keep.
Why did some characters disappear or words run together?
Text is normalized with NFKC and converted to lowercase before filtering. The default mode keeps the resulting Unicode letters and numbers, while spaces, underscores and hyphens form separators. Other punctuation is deleted: for example, “a.b” becomes “ab”. ASCII-only mode also decomposes characters, removes combining marks and deletes non-ASCII characters; “café” becomes “cafe”, but “ß” and “ł” are removed. It does not turn Chinese into pinyin. Different titles can produce the same slug, so check that it fits the site where you will use it.
What do the copy button and text download contain?
“Copy result” copies the complete slug text, and result.txt contains the same text in UTF-8. The expandable output details show input and output character counts measured as Unicode code points; they are not the slug itself. An empty slug still has an empty text download. Loading the example keeps your current ASCII-only setting; clearing the tool restores the default with ASCII-only off.
Documentation & further reading
Related tools
TXT to UTF-8
Read a TXT file with the right source encoding and save it as UTF-8.
Merge TXT files
Combine TXT files in your chosen order and save one UTF-8 text file.
Word counter
Words, characters, and paragraphs at a glance.
Case converter
Change pasted text to uppercase, lowercase or simple capitalized forms.