Slug Generator

The slug generator turns a title, heading or phrase into a clean URL slug, the short readable part of a web address that follows the last slash. A good slug is lowercase, uses hyphens between words, and contains only letters, numbers and dashes, which makes links easier to read, share and remember while giving search engines clear, keyword rich signals about the page. This tool takes whatever you type and tidies it in one pass. It converts everything to lowercase, strips accents so that words like cafe and Maori become plain ascii, removes punctuation and symbols, collapses runs of spaces, and joins the remaining words with single hyphens. Leading and trailing dashes are trimmed so the result is neat at both ends. Writers, bloggers, marketers and developers use it to create permalinks, file names, anchor links and category paths that stay consistent across a whole site. There is real SEO value in getting this right, because a tidy descriptive slug is more clickable in search results and easier to link to than a string of numbers or query parameters. A few tips improve the outcome. Keep slugs short and focused on the main keywords, dropping filler words like the and of where they add nothing. Decide on a slug before you publish and avoid changing it later, because changing a live URL breaks existing links unless you set up a redirect. Use the same casing and separator everywhere so your address structure looks deliberate. Everything runs locally in your browser, so the text you slugify is never uploaded or stored on a server.

Lowercases, strips accents and symbols, and joins words with hyphens. Runs in your browser.

How it works

The tool lowercases your text, separates accented letters from their marks and removes those marks, then replaces every character that is not a letter, number or space with nothing. Spaces and repeated separators are collapsed into single hyphens and any leading or trailing hyphen is trimmed.

Worked example

The title How to Save for a House in NZ! becomes how-to-save-for-a-house-in-nz. The exclamation mark is dropped and each space turns into a hyphen.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

© 2019 to 2026 Calculate.co.nz. All rights reserved.