Developer Tools

URL Encode / Decode

URL encode and decode online with a single Mode switch. Fix query strings, path segments, and percent-encoding without leaving your browser.

Encode and decode URL components on one page. Switch Mode between Encode and Decode, paste the text, and copy a clean result for query strings or path segments.

About URL Encode / Decode

Spaces, ampersands, and non-ASCII characters break URLs when left raw. Encoding turns them into percent-escapes that servers and browsers expect.

Decode reverses the process when you need to read a messy query string or debug a redirect target.

Keeping both directions here avoids bookmarking two nearly identical tools for the same job.

How to Use URL Encode / Decode

  1. Paste the string to encode or decode.
  2. Set Mode to Encode or Decode.
  3. Run the tool.
  4. Copy the result into your link, config, or test.

Encode individual query values—not an entire URL with scheme and host—unless you intend to escape the whole string.

Common Use Cases

Query parameters

Encode user-entered search terms before appending them to a URL.

Debug redirects

Decode percent-encoded locations from logs.

API samples

Prepare encoded examples for documentation.

Tips and best practices

URL tools sit with HTML entity encoding and JWT decoding for everyday web debugging.

Frequently Asked Questions

Quick answers about how this tool works and when to use it.

Is this the same as encodeURI?

This page uses encodeURIComponent-style escaping for values you paste—ideal for query parameters.

Can I decode twice?

Only if the string was double-encoded. Most values need a single decode pass.

Does Encode change already-safe characters?

It escapes reserved characters so they are treated as data, not URL syntax.

Is my text uploaded?

No. Encoding and decoding run in the browser.

Where is HTML entity encoding?

Use the HTML Encode / Decode hub for < and & style entities.