Slug to Title Converter NZ

This tool turns a URL slug back into a readable, properly capitalised title, the reverse of the slugifying that creates web-address-friendly text. A slug is the lowercase, hyphenated tail of a web address, like best-flat-white-in-wellington, designed for URLs rather than reading. Often you need to go the other way: to display a heading from a slug, to generate a page title from its address, to create link text, or to recover a human-readable label from a file or database key that was stored in slug form. Doing this by hand means replacing the separators with spaces and capitalising each word, which is tedious for more than a couple. This converter does it instantly. You paste a slug, using hyphens or underscores between words, and the calculator replaces the separators with spaces and capitalises each word to produce a clean title, shown in the box ready to copy. The result updates as you type and runs in your browser. Use it to generate headings or titles from slugs, to create readable labels from keys, to reverse a slug for display, or for content and development work. It handles both hyphen and underscore separators, collapses any runs of them, and trims separators from the ends, so a messy slug still comes out tidy. The conversion uses title case, capitalising the first letter of every word, which suits most headings and titles. A note on the limits of any automatic conversion: it cannot know about acronyms or words that should stay lowercase, so a slug like nz-gst-guide becomes Nz Gst Guide rather than NZ GST Guide, and small joining words are capitalised too. For most purposes the result is exactly what you want, and you can tweak any special cases by hand afterwards.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Premium Homes: got a section? Let's build your eco home on it.
Advertise on this page
Best Flat White In Wellington

Replaces hyphens and underscores with spaces and applies title case. Cannot know acronyms, so nz becomes Nz; tweak special cases by hand. Runs entirely in your browser.

How it works

The converter replaces every hyphen and underscore with a space, collapsing any runs of separators and trimming them from the ends, then capitalises the first letter of each resulting word while lowercasing the rest. This produces a clean, title-cased heading from the slug, the reverse of the slugifying process.

Worked example

The slug best-flat-white-in-wellington becomes the title Best Flat White In Wellington. Each hyphen turns into a space and every word is capitalised. An underscore-separated slug like annual_report_2026 would become Annual Report 2026 in exactly the same way.

Related calculators