URL slug generator
Generate a Unicode URL slug with hyphens or underscores. Normalize accents, collapse punctuation and preview the result locally without changing your website URLs.
Text & writingEncode query values with UTF-8 percent encoding or decode URL components. See how spaces, plus signs and double encoding behave locally.
Ready when you are.
Using the default settings. You can try the same input in the workspace.
hello world & coffee
hello%20world%20%26%20coffee
Choose Encode for one parameter value or path segment, or Decode for a percent-encoded component. Run the tool, then copy the result into the appropriate part of your URL.
Uses encodeURIComponent/decodeURIComponent, not whole-URL encoding or form-urlencoded parsing. Decode preserves + literally. Encoding is not URL validation or HTML sanitization.
This encodes a URI component, including slashes and question marks. Use it for a parameter value, not to preserve the structure of a full URL. Decoding requires valid percent sequences.
No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.
Yes. No account, subscription or usage credits are required.
Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.
For a query such as ?q=hello%20world, encode only hello world, then add the parameter name and separators yourself. A slash in a value becomes %2F; ? becomes %3F and & becomes %26. Pasting https://example.com/a?x=1 encodes its structural punctuation too, so the result is not a ready-to-open version of that URL.
Encode mode changes a b+c into a%20b%2Bc. Decode mode changes a%20b%2Bc back into a b+c, but leaves a+b as a+b. HTML form encoding can use + for spaces; this tool does not parse that format. Separate a query value before decoding it rather than decoding an entire query and losing the distinction between data and separators.
café 🌍 becomes caf%C3%A9%20%F0%9F%8C%8D. These are percent-encoded UTF-8 bytes. In Decode mode, an incomplete percent sequence such as % or an invalid UTF-8 sequence such as %FF produces an error, not a repaired guess. Letters, digits and - _ . ! ~ * single quote and parentheses remain unescaped by encodeURIComponent; stricter destination formats may need additional rules.
Encoding %20 produces %2520 because the percent sign is encoded too. Decoding %2520 once returns %20, not a space. Decide which encoding layer your destination expects; repeatedly decoding until text looks readable can change data or security boundaries. Percent encoding does not make a javascript: URL safe, validate a domain or create a human-readable slug.
Choose the encoding for your destination: Base64 text representation, URL parameter values or HTML text escaping. These are not interchangeable security controls. Copy the result before switching tools; input is not transferred automatically.
Choose the right developer tools workflow before combining tools.
Something not right? Report a problem with this tool. Include the steps, but never passwords or private input.
Generate a Unicode URL slug with hyphens or underscores. Normalize accents, collapse punctuation and preview the result locally without changing your website URLs.
Text & writingEncode Unicode text as standard Base64 or decode it as UTF-8. Check emoji examples, padding and invalid text locally in your browser.
Developer toolsEscape five HTML-special characters or decode named and numeric references. Compare text escaping with sanitization using local examples.
Developer tools