TR ToolRivet

Developer Tools

URL Encoder / Decoder

Encode and decode URL components directly in your browser.

Convert spaces, query values, symbols, and path-like text into URL-safe encoded strings, or decode encoded values back to readable text.

Encoder / Decoder

Encode and decode URL components with browser-native functions.

Output

// Encoded or decoded output will appear here.

How to use

  1. 1. Paste text

    Add a URL component, query value, or encoded string.

  2. 2. Encode or decode

    Use browser-native encodeURIComponent and decodeURIComponent behavior.

  3. 3. Copy output

    Use the result in URLs, query strings, requests, or documentation.

Example

`hello world/path?x=1` becomes `hello%20world%2Fpath%3Fx%3D1` when encoded as a URL component.

FAQ

What is URL encoding?

URL encoding replaces unsafe URL characters with percent-encoded sequences so they can be safely used in URLs.

Is this done locally?

Yes, encoding and decoding run locally in your browser.

When should I use encodeURIComponent?

Use encodeURIComponent for individual query values, path segments, or text that will be inserted into a URL.