All Over Tools logo
Tool Combiner
Analyze Tools Clean Tools Compare Tools Convert Tools Data Validation Extract Tools Format Tools Generate Tools Organize Tools Transform Tools
Audio Tools Font Tools Image Tools Subtitle Tools Video Tools
Archive Tools Document Tools Ebook Tools File Management Tools PDF Tools Presentation Tools
Config Tools Database Tools Dataset Tools JSON Tools Parser Tools Spreadsheet Tools XML Tools
Business Calculators Construction Calculators Date And Time Calculators Education Calculators Financial Calculators Food Calculators Health Calculators Math Calculators Science Calculators Sports Calculators Statistics Calculators
Blog About Us Contact Us

Slug Converter

Turn any text into a clean, URL-friendly slug. Choose your separator, case, and accent handling below.

Leave empty or use 0 for no limit.

How to convert text to a URL slug

Paste text into Input text or use Upload for a .txt or text/plain file. The converter keeps ASCII letters and digits, changes other characters into the selected Separator, and writes the result in Output text. Set Max length before using Copy or Download.

How to use the Slug Converter

  1. Type or paste text into the input area, or select Upload to read a .txt or text/plain file.
  2. Choose Hyphen ( - ), Underscore ( _ ), or Dot ( . ) from Separator.
  3. Set Lowercase, Transliterate accents, Treat multi-line input as one slug per line, and Max length.
  4. Check Output text, then select Copy or Download.

How Separator and Transliterate accents change output

Separator sets the character between groups of letters and digits. Lowercase changes ASCII letters to lowercase. Turn it off to keep their existing case. Transliterate accents applies Unicode NFKD normalization and removes combining accent marks before filtering.

Input:  Café Menu: Summer 2026!
Output: cafe-menu-summer-2026

After that, every character outside A-Z, a-z, and 0-9 becomes the selected separator. Repeated separators collapse, and separators at the beginning or end are removed. With Transliterate accents off, the accented character in Café becomes a separator instead of an e.

Convert multiple lines into one slug per line

Enable Treat multi-line input as one slug per line when each input line should produce a separate result. The converter processes each line independently and joins the results with line breaks. Blank lines remain blank.

Input:
Spring Launch
Café Menu

Output:
spring-launch
cafe-menu

With the option off, a line break matches the same replacement rule as other characters outside ASCII letters and digits, so it becomes a separator inside one slug.

How Max length truncates a slug

Leave Max length empty or enter 0 for no truncation. A positive number cuts the finished slug at that character count, then removes a separator if the cut ends on one. The cut can stop inside a word.

Input:  Launch notes for June
Max length: 10
Output: launch-not

Empty input produces empty output. Whitespace, punctuation, symbols, emoji, and non-ASCII letters that were not transliterated become separators. Upload and output generation are handled by browser JavaScript. Download creates a text file named slug.txt. The Copy control has a status area beside it for feedback.

Where to use the generated slug

A content editor can turn "Café Menu: Summer 2026!" into one path segment before publishing a page. A developer can convert a batch of titles with Treat multi-line input as one slug per line, then save the lines for a routing or import step.

Set Max length before copying a slug into a field with a character limit. Underscore ( _ ) and Dot ( . ) give you other separators when a filename or field calls for them.

Choose the right text transformation tool

Slug Converter belongs in Text Transformation Tools when words need to become a compact path-style string. Choose URL Encoder / Decoder when the job is percent-encoding or decoding URL text. Choose Find and Replace Text when you need to replace literal text or regular-expression matches while preserving the rest of a document. Choose Unicode Normalizer when you need NFC, NFD, NFKC, or NFKD normalization without slug filtering.

Frequently asked questions

What does a slug converter do?

A slug converter changes text into a string made from ASCII letters, digits, and a selected separator. It also collapses repeated separators and removes them from the edges.

How do I convert accented text to a slug?

Enable Transliterate accents to normalize accented letters and remove their accent marks before filtering. For example, café becomes cafe when Lowercase is enabled.

Can I create one slug per line?

Yes. Enable Treat multi-line input as one slug per line, and each line becomes its own slug while the line breaks remain in Output text.

Does Max length stop at a whole word?

No. Max length cuts the finished slug at the requested character count and removes a trailing separator when needed; it can cut through a word.

Can I upload and download slug text?

Yes. Upload reads an accepted text file in the browser, and Download saves the generated result as slug.txt.

Related Tools

41 views