Skip to content

Count page views and project clicks with PostHog (EU servers)? It loads only if you choose Allow. Privacy

URL Encoder live preview
All projects

URL Encoder

Encode or decode a URL or query value with the right function, and read its query parameters.

URL encoding for API calls and query parameters had edge cases — double-encoding, Unicode — that fragmented online tools handled inconsistently.

Tech Domain · Book Dev|Published|Evidence: Live|Next.js, TypeScript

A public deployment is available to try.

Case Study

Before

Encoding and decoding URLs for API calls, query parameters, and special characters required terminal commands or fragmented online tools that didn't handle edge cases well.

After

Convert text with UTF-8 percent-encoding, get a clear error for malformed escapes, and see a URL's query parameters as a table.

How it's solved

Built a URL tool, now at /url-encoder in the Devtools Workbench suite, with the four browser codecs (encodeURIComponent, decodeURIComponent, encodeURI, decodeURI), an optional + as space for form data, swap-and-reverse, and a query inspector that lists decoded key/value pairs.

Trade-offs

It wraps the browser's built-in codecs: no double-encoding detection, query string builder, batch mode, or path/fragment breakdown.

Related Articles

Further reading on related topics from the blog

Related Projects

More in Tech Domain · Book Dev