What is URL Path Sanitizer?
URL Path Sanitizer cleans a URL path: it drops the query string and hash, turns accented letters into plain ones (cafe for café), replaces other unsafe characters with hyphens, collapses repeated separators, resolves . and .. segments and lowercases the result.
How It Works
- Enter a path such as /My Folder/Some File (1).htm in the input fields on this page.
- Press the button to run URL Path Sanitizer.
- Read a clean path in the result area, and copy or download it.
Common Uses
- Making tidy slugs from messy file paths.
- Normalising URLs before redirects.
- Cleaning exports from a CMS.
Good to Know
Compare the output with your real URLs before redirecting so you do not break existing links.
What it does
Paste a path or URL and the tool produces a clean, lowercase, hyphenated path. /My Page/Hello World?x=1#top becomes /my-page/hello-world, with the query string and fragment dropped.
Accents and dot segments
Accented letters are turned into plain ones, so /Café/Crème becomes /cafe/creme. A . segment is dropped and a .. segment removes the segment before it, so /a/b/../c becomes /a/c. A .. at the top cannot go above the root, so /../x becomes /x.
More to know
Changing live URLs breaks existing links, so add redirects from the old paths when you rename pages. Letters outside the Latin alphabet, such as Greek or Chinese, are replaced with hyphens.
Frequently Asked Questions
Does it keep the slashes?
Yes. Each segment is cleaned separately.
Does it remove the query string?
Yes, along with the fragment.
What happens to accented letters?
They lose the accent: é becomes e and ü becomes u. Other scripts are replaced with hyphens.
Does it resolve ../ in a path?
Yes. A .. segment removes the segment before it and a . segment is dropped, and it never goes above the root.
What does URL Path Sanitizer do?
URL Path Sanitizer cleans a URL path: it drops the query string and hash, turns accented letters into plain ones (cafe for café), replaces other unsafe characters with hyphens, collapses repeated separators, resolves . and .. segments and lowercases the result.
What do I need to enter in URL Path Sanitizer?
A path such as /My Folder/Some File (1).htm.
Is my data private in URL Path Sanitizer?
URL Path Sanitizer runs in your browser, so what you enter is not uploaded to MyToolDock.
Is MyToolDock URL Path Sanitizer free to use?
Yes, MyToolDock URL Path Sanitizer is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.
Where can I learn more about URL Path Sanitizer and related workflows?
MyToolDock publishes written guides on the topic: Complete Guide to URL Encoding and Decoding. Each guide links back to the tools it covers.