Skip to main content
Utilnivo

Developer

Utilnivo

URL Encoder/Decoder

Encode or decode URL-safe text.

No registration
  • On your device

Browse more in Developer or all tools.

Private on your device

Your information stays on your device and is not uploaded.

Encode text for use in URLs or decode URL-encoded strings. Processing uses standard browser encoding APIs.

How to use this tool

1. Paste the string. 2. Choose Encode or Decode. 3. Copy the result. 4. For full URLs, encode only the query/path segments that need it. 5. Re-decode to verify round-trips.

Worked example

Example 1: hello world → hello%20world. Example 2: name=R&D → name%3DR%26D so the ampersand does not split query parameters.

When to use this

  • Building query strings with special characters.
  • Decoding a messy analytics landing URL.
  • Preparing values for APIs that expect percent-encoding.
  • Round-tripping Unicode in path segments.
  • Teaching percent-encoding vs form + encoding.

Common examples

  • Space in query value → %20.
  • Encode email for mailto query safely.
  • Decode %2F vs literal slash in path segments.
  • Round-trip Unicode café → %C3%A9 and back.
  • Do not encode https:// host—only encode components.

Common mistakes

  • Encoding an entire URL including the scheme.
  • Double-encoding already escaped values.
  • Assuming + always means space in every context.
  • Leaving secrets in shareable encoded URLs.
  • Encoding slashes that should remain path separators.

How it works

Encodes or decodes URL components with encodeURIComponent / decodeURIComponent semantics—safe for query values, not for encoding an entire URL including ://.

Limitations

Results are based on the inputs you provide and may not cover every edge case. This tool is for general use and is not professional advice.

Privacy and file handling

Your data stays on your device and is not uploaded.

Formula or method

Uses standard percent-encoding for reserved characters. Spaces become %20 (not +); + in decode is treated as a plus character unless you convert form-encoding separately.

FAQ

Frequently asked questions

Is this the same as encodeURI?

Encoding uses encodeURIComponent, which encodes more characters than encodeURI.

When should I URL-encode a string?

Encode query values and other components that may contain spaces or reserved characters so the URL parser does not split fields incorrectly.

Is this the same as encoding a full URL?

No. Encode components. Encoding https:// and host slashes breaks the URL.

Does encoding happen on my device?

Yes. Encoding and decoding run in your browser; strings are not uploaded for this tool.

Page last reviewed: