Text to slug URL slug generator

Paste titles and each becomes a clean URL slug, lower case with hyphens, in your browser: nothing you type is uploaded.

  • Nothing uploaded
  • As you type
  • Any language
  • Free, no sign-up

Getting ready…

Quick facts from our tests

Check it yourself: once the page has loaded, turn off Wi-Fi and mobile data, and Text to Slug still works. Your browser's network panel (F12 on a computer) lists every request the page makes: you'll see Google's ad requests, and none of them carries your text. Our code never gives your text to the ad code. How we prove it

How to make a URL slug

  1. Paste the titles

    One on each line.

  2. Pick the joiner

    Hyphen or underscore.

  3. Copy the slugs

    Or download them.

When this tool isn't the right fit

  • Your title is in Hindi or another non-Latin script. Tick Keep letters of other scripts, or the title comes out empty.
  • You need a short slug from a long title. Every word stays; shorten the slug by hand after making it.
  • You need the address's special characters kept as codes. A slug drops them. URL Encode keeps every character as a code.

Why use PDFGuild's slug generator

More free tools

Private like this one: nothing you type or add leaves your device.

Text to Slug: the complete guide

What a slug is, how titles become slugs, accents, Hindi and other scripts, file names, real results and tips.

In this guide
  1. What it does
  2. Step by step
  3. How a slug is made
  4. Real results
  5. Accents and other scripts
  6. A good slug
  7. Everyday uses
  8. Opening a file
  9. Privacy
  10. Long texts
  11. Tips
  12. Limits
  13. Terms explained

What Text to Slug does, and when you need it

Text to Slug turns a title into a slug: the short, lowercase part of a web address that names a page, such as how-to-compress-a-pdf-to-100-kb in a blog's address. Capitals become small letters, accents are taken off, & becomes and, and every space or symbol becomes one hyphen (or an underscore, if you choose). Each line of the box gets its own slug, so a whole list of titles is done at once. The slugs appear in the second box as you type, ready to copy or download. The box with your own text is never changed.

It runs in your browser: your titles are never uploaded and never saved, so closing the page forgets them.

Some jobs it is made for:

  • Addresses for blog posts and pages, made from their titles.
  • File names without spaces or symbols, which every system and upload form accepts.
  • Ids and anchors for headings, as in page/#my-section.
  • A list of product or category names turned into addresses at once, one per line.
  • Names for folders, tags and keys in apps and spreadsheets.

Step by step: making slugs

It takes a few seconds, and the same steps work on a phone and on a computer:

  1. Type or paste your titles in the top box, one on each line. You can also choose Open a text file, or drop a text file anywhere on the page.
  2. Choose what goes between words under Between words: Hyphen (my-page-title) or Underscore (my_page_title).
  3. Tick Keep letters of other scripts if your titles are in Hindi or another script that is not written in the Latin alphabet; otherwise their letters are left out.
  4. Leave A slug for each line ticked for a list, or untick it to make the whole text into one slug.
  5. Copy or download the slugs.

Press Try a sample: the box fills with three titles: How to Compress a PDF to 100 KB?, Resume and Final Version (2026) joined by a long dash, and Café & Résumé tips. The result is how-to-compress-a-pdf-to-100-kb, resume-final-version-2026 and cafe-and-resume-tips.

How a slug is made, exactly

Each title goes through these steps, in this order. The rules are written here in full, and the same rules are checked by our tests.

StepThe ruleExample
AccentsLetters are taken apart and their accents droppedCafé becomes cafe; Ünïcödé becomes unicode
Small lettersEvery capital becomes a small letterPDF becomes pdf
&Becomes the word andCafé & Bar becomes cafe-and-bar
Everything elseAny character that is not a to z or 0 to 9 (spaces, punctuation, symbols) is a gap between words50% off: ₹999 only becomes 50-off-999-only
GapsEach gap, however long, becomes one hyphen or underscore, and none is left at the start or the end --Hello--World-- becomes hello-world
Keep letters of other scriptsOff at first. On, letters and vowel signs of every script stay, in small letters where the script has themहिंदी में शीर्षक becomes हिंदी-में-शीर्षक
A slug for each lineOn at first: each line gets its own slug, and an empty line stays empty. Off, the whole text is one slugOff: two titles become my_page_title_second_title

Nothing is added: the tool doesn't shorten a long title, drop small words such as a and the, or make two slugs different if their titles were the same.

Real results from our tests

We tested Text to Slug with headless Chromium 148, the open-source browser Chrome is built on, on a Windows laptop with an Intel Core i7-1185G7 and 32 GB of memory, on 1 November 2026. Other work was running on the laptop at the same time, so times vary from run to run: each time below is the middle one of 3 runs.

Making slugs is quick. It took 139 milliseconds or less to make a slug for every line of 500,000 characters of English, Hindi or a mix of English, Hindi, Tamil and emoji, with letters of other scripts kept, the most the page takes at once.

After a text is put in the box, the page waits 0.15 second before it works, so a burst of typing is worked on once, and 0.4 second when the text has more than 400,000 characters. So the result of 500,000 characters of English showed between 0.54 and 0.57 second after it was put in the box in our test. A result of more than 100,000 characters shows only its first 100,000 in the box, and says so, because showing a very long text is slow for the browser; Copy and Download take all of it.

Checked against a second program. We made the slugs of every line of 1,500 random texts with this page's code and again with a separate Python program, with hyphens and underscores at random: the slugs were the same every time. The texts had English words, capitals, apostrophes, hyphens, numbers and punctuation. Every example on this page is also one of our tests, run on the page's own code.

Size and offline. On a first visit the page downloads about 0.1 MB for the tool: the page, its styles, its scripts and the fonts, with Google's ad code not counted. In our test we switched the network off after the page had loaded and pressed Try a sample: the result showed 0.2 seconds later or less in each of 15 runs.

Phone-sized screen. We also ran the tests on a phone-sized screen in headless Chromium (390 × 844 pixels, with touch). That is not a real phone. Every button, box and tick box was 44 pixels high or more, and the page did not scroll sideways. These tests don't cover Safari or Firefox.

Try it yourself: press "Try a sample" at the top of this page. It puts three titles in the box, with a question mark, a long dash, brackets, accents and an &. The result is how-to-compress-a-pdf-to-100-kb, resume-final-version-2026 and cafe-and-resume-tips. Then choose Underscore.

Try the sample

Accents, symbols and other scripts

Accented letters lose their accents and keep their letter: naïve façade becomes naive-facade, and Résumé becomes resume. A few letters have no plain form to fall back on, and they are left out: Straße Œuvre Ærø becomes stra-e-uvre-r. Write such words with plain letters first (Strasse, Oeuvre) if you want them whole.

Symbols become gaps, so they disappear: C++ & C# Guide becomes c-and-c-guide, and Ravi's Résumé (Final) becomes ravi-s-resume-final, with the apostrophe turned into a hyphen. If a symbol carries the meaning, write the word instead: cpp or c-sharp.

Hindi and other scripts. Without Keep letters of other scripts, only a to z and 0 to 9 stay, so a Hindi title comes out empty and a mixed one loses its Hindi words: मेरा Blog पोस्ट 2026 becomes blog-2026. Tick the box and the Hindi stays: मेरा-blog-पोस्ट-2026. Web addresses can hold Hindi, and browsers show it, but when an address is copied into a message, it often turns into long codes such as %E0%A4%B9. Many sites use a short English slug, or the Hindi words written in Latin letters, for that reason. Choose what suits your readers.

Numbers stay as they are, so a title such as Top 10 Tips for Exam Day becomes top-10-tips-for-exam-day. If you may update the list later, a slug without the number, such as tips-for-exam-day, stays right when the list grows.

Text to Slug after its sample: three titles turned into URL slugs, such as how-to-compress-a-pdf-to-100-kb
Our sample titles, turned into slugs in the browser.

What makes a good slug

Many sites use slugs that are short, readable and stable. A few habits help:

  • Keep the words that say what the page is about, and drop the rest by hand if the title is long: compress-pdf-to-100-kb says as much as how-to-compress-a-pdf-file-to-under-100-kb-for-free.
  • Hyphens between words are the common choice for web addresses; underscores are common in file names and code.
  • Small letters only, because some web servers treat Page and page as different addresses.
  • Don't change a slug once a page is live. Old links and bookmarks point to the old address; if you must change it, forward the old address to the new one.
  • Avoid dates in the slug of a page you will update, or the address will look out of date.

Everyday uses

  • A batch of post titles: paste them all, one a line, and copy the slugs back into your content tool.
  • File names for uploads: exam and job portals sometimes refuse names with spaces or symbols, and the sample's resume title, with its dash and brackets, becomes resume-final-version-2026.
  • Anchors for headings, to link to a section of a long page.
  • Keys for a spreadsheet or an app, with underscores.
  • Before a slug, fix the capitals or words with Case Converter or Find and Replace.

For a web address with spaces or symbols kept as codes instead, use URL Encode.

Opening a text file

Choose Open a text file, or drop a file anywhere on the page, and the tool reads it on your device. These files open: .txt, .md, .csv, .tsv, .log, .json, .xml, .srt, .vtt, .html and other plain-text files, with up to 500,000 characters. The file's name and size appear below the box with an x; press the x to remove the file's text. The file is read on your device and never uploaded. The result can be copied, or saved as a new text file; the file you opened is never changed.

  • Letters. A file saved as UTF-8 (a byte order mark at the start is dropped) or as UTF-16 with a mark is read correctly, Hindi and Tamil included. A file that is not valid UTF-8 is read as Windows-1252, and the page says so: "This file isn't saved as UTF-8, so it was read as Windows-1252. If letters look wrong, save it as UTF-8 and add it again."
  • Windows line breaks. A Windows file stores each line break as two characters. The tool reads the pair as one line break, so each line of a Windows file gets its own slug.
  • Several files. Only the first one opens, and the page says so, for example "Opening a.txt only. Open the others one at a time."
  • Not a text file. A Word, PDF or picture file renamed to .txt is not read, and the page says it doesn't look like a text file. A file named .docx, .pdf or .rtf gets this message: "Only text files (.txt and similar) can be opened here. For a Word or PDF file, copy its text and paste it into the box."
  • Empty or too long. An empty file says it is empty. A file with more than 500,000 characters is not opened, and the page says how many characters it has.

For a Word or PDF file, open it in the program you normally use, select the text, copy it, and paste it into the box. A PDF whose pages are scans holds pictures, not text, so there is nothing to copy.

Private: your text stays on your device

Your text never leaves your device. The tool runs inside your browser and has no upload step: it never sends the text you type, paste or open anywhere, and it keeps no copy of it, so closing the page forgets it. The page's Content Security Policy lets it contact only this site and Google's ad service, which pays for the site; our code never gives your text to the ad code. You can check it yourself in your browser's network panel (F12 on a computer): making the slugs adds no request that carries your text. The site's menu does remember the last few tools you opened, on your device.

Titles of drafts, unpublished posts and private files can be confidential. This tool turns them into slugs without handing them over. Our privacy policy says what we collect, and How we prove it shows how you can check our claims yourself.

Once the page has loaded, it also works with the internet switched off. In our test we switched the network off after the page had loaded and pressed Try a sample, and the result showed 0.2 seconds later or less in each of 15 runs.

Text to Slug after its sample: three titles turned into URL slugs, such as how-to-compress-a-pdf-to-100-kb, at a phone's size with the internet switched off by our test, between our test's bands that read "Internet switched off" and "Nothing uploaded: 0 requests sent data"
Proof from our testOn 9 November 2026, our test opened Text to Slug at a phone's size, switched the internet off and ran it on its built-in sample. It finished with no connection, and none of the page's 15 requests sent any data.How we test, and how to check it yourself

Long texts

The tool takes up to 500,000 characters at once, about 500 KB of English text. What happens when a text is longer:

  • A paste that would go over the limit is not added. This holds for Ctrl+V, for press and hold, and for the Paste button. The page says, for example: "That text is very long (550,000 characters), so it was not added. The box can hold 500,000 characters. Split it into smaller parts for faster results."
  • A file with too many characters is not opened. The page says, for example: "long.txt has 550,000 characters, more than the 500,000 counted at once. Split it into smaller parts for faster results."
  • A text that gets in some other way stays, unchanged. If text is dragged into the box, for example, it stays there, the result stays empty and the note says: "This text is very long (550,000 characters). Split it into smaller parts for faster results."

Making slugs is quick. In our tests it took 139 milliseconds or less to make a slug for every line of 500,000 characters of English, Hindi or a mix of English, Hindi, Tamil and emoji, with letters of other scripts kept. The slow part is the browser showing a very long text in a box, so a result of more than 100,000 characters shows only its first 100,000, without cutting an emoji in half, and the note says so, for example "Showing the first 100,000 of 164,999 characters. Copy and Download take all of it." Copy and Download always take the whole result.

Tips

  • One title a line, with A slug for each line ticked.
  • Shorten long titles by hand after making the slug; the tool keeps every word.
  • Tick Keep letters of other scripts for Hindi titles, or they come out empty.
  • Write symbols as words (plus, sharp) when they carry the meaning.
  • Check for repeats: two titles that are the same give the same slug.
  • Keep your own copy. The page forgets everything when you close it.

Limits

  • No shortening. Every word of the title stays; small words such as a and the are not dropped.
  • Some letters drop out. Letters with no plain form, such as ß, æ, œ and ø, are left out.
  • Other scripts are left out unless Keep letters of other scripts is ticked.
  • Symbols become gaps, so C++ and C# both become c.
  • No check for repeats against slugs already used on your site.
  • 500,000 characters at once, about 500 KB of English text.

Terms explained

Slug
The readable part of a web address that names one page, such as how-to-compress-a-pdf.
URL
A web address, made of the site's name and the path to a page.
Anchor
The part after # in an address, which jumps to a section of a page.
Hyphen
The short dash between words in a slug, as in my-page.
Diacritic
An accent or other mark on a letter, as on the é of café.

Frequently asked questions

How do I turn a title into a URL slug?

Type or paste the title into the top box. Its slug appears at once in small letters, with hyphens between the words and symbols taken out. Copy it, or download it.

Can I use underscores instead of hyphens?

Yes. Under Between words, choose Underscore: my_page_title instead of my-page-title.

Can I make slugs for many titles at once?

Yes. Put one title on each line, and keep A slug for each line ticked: each line gets its own slug.

What happens to accents?

They are taken off and the letter stays: Café becomes cafe, Résumé becomes resume. A few letters with no plain form, such as ß and ø, are left out.

Does it work for Hindi titles?

Tick Keep letters of other scripts and the Hindi stays: हिंदी-में-शीर्षक. Without it, only a to z and 0 to 9 stay, so a Hindi title comes out empty.

What happens to symbols like &, % and ₹?

& becomes the word and; every other symbol becomes a gap between words, so 50% off: ₹999 only becomes 50-off-999-only.

Does it remove words like a and the?

No. Every word stays. Shorten the slug by hand if the title is long.

Why did two titles give the same slug?

Because titles that differ only in capitals, accents or symbols give the same slug. Change one of them by a word.

Is a slug the same as URL encoding?

No. A slug changes the words into plain small letters and hyphens. URL Encode keeps every character and writes the unusual ones as codes.

Can I use it for file names?

Yes. A slug has no spaces or symbols, so it works as a file name everywhere, for example for an upload form that refuses spaces.

Is Text to Slug free?

Yes. There is no sign-up and no watermark, and you can use it as often as you like. Ads from Google help pay for the site. They are kept apart from the tool, and our code never gives them your text.

Is my text uploaded anywhere?

No. The tool has no upload step: it works inside your browser and never sends the text you type, paste or open anywhere, and it keeps no copy of it. Google's ad code is on the page, and our code never gives it your text. How we prove it shows how to check.

How much text can it take at once?

Up to 500,000 characters, about 500 KB of English text. A paste or a file that would go over is not added, and the page says so. In our tests it took 139 milliseconds or less to make a slug for every line of 500,000 characters of English, Hindi or a mix of English, Hindi, Tamil and emoji, with letters of other scripts kept. See Long texts.

Can I open a text file, or a Word or PDF file?

A text file, yes: choose Open a text file or drop a .txt, .csv or similar file on the page, with up to 500,000 characters. A Word or PDF file must have its text copied out first, because the tool reads text, not those files.

Does it work offline?

Yes, once the page has loaded. In our test we switched the network off after the page had loaded and pressed Try a sample: the result showed 0.2 seconds later or less in each of 15 runs. If you open the page for the first time with no internet, it can't load.

By the PDFGuild team · Updated · How we test