URL Encoder / Decoder

Input
Loading...
Output
Loading...
100% Client-Side • Zero Data Sent to Servers

Online URL Encoder & Decoder (RFC 3986 Percent-Encoding)

Easily encode and decode URL strings, query parameters, path components, and OAuth redirect URIs using standards-compliant percent-encoding.

Local Processing & Data Privacy

All formatting, parsing, decoding, and validation executes entirely within your browser using modern Web APIs and JavaScript. Your tokens, JSON payloads, regex inputs, and queries never leave your computer.

About this Tool

URLs can only be sent over the Internet using the ASCII character-set. When URLs contain non-ASCII characters or reserved characters like ?, &, =, #, or spaces, they must be converted into valid ASCII using percent-encoding (% followed by two hexadecimal digits).

DevRef's Online URL Tool supports both component-level encoding (encodeURIComponent for query string values) and full URL encoding (encodeURI for complete links). It instantly highlights decoding errors, handles multi-byte UTF-8 character sequences, and runs 100% locally in your browser so private tokens, authentication parameters, and session URLs remain strictly confidential.

How to Use

  1. 1Enter URL or Text: Paste your raw URL, query string, or percent-encoded string into the input area.
  2. 2Choose Encode or Decode: Select Encode to convert special characters to percent-encoded codes, or Decode to reveal human-readable text.
  3. 3Select Mode: Toggle between 'Component' (encodeURIComponent, best for query parameter values) and 'Full URL' (encodeURI, preserves protocol and host delimiters).
  4. 4Copy Result: Copy the sanitized, encoded, or decoded result directly to your clipboard.

Key Features

  • •RFC 3986 compliant percent-encoding and decoding engine
  • •Distinction between encodeURI (full URL) and encodeURIComponent (query params)
  • •Graceful handling of multi-byte UTF-8 and international character sets
  • •Real-time bidirectional conversion with instant clipboard copy
  • •100% client-side privacy: internal API routes, query params, and credentials never touch a server

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI is meant for complete URLs; it preserves reserved protocol and structural characters such as ://, ?, &, and =. encodeURIComponent is designed for individual parameter values, encoding characters like & and = so they are not misinterpreted as query delimiters.

Why do spaces become %20 instead of +?

RFC 3986 specifies %20 as standard percent-encoding for spaces across all URL parts. The plus sign (+) is traditionally used in application/x-www-form-urlencoded query strings, but %20 is universal and safer across modern REST APIs.

Are my parameters or authentication tokens uploaded to DevRef?

No. All encoding and decoding runs in your browser's local JavaScript environment. No query strings, tokens, or URLs are logged or sent to any server.