URL Encoder/Decoder

Online URL Encoder & Decoder - Percent-Encode URLs Instantly

This online URL encoder and decoder converts special characters into percent-encoded (%XX) sequences for safe transmission and decodes encoded URLs back to readable text.

Quickly encode URL parameters and decode percent-encoded URLs in your browser with no server upload.

Input URL

Decoded URL

URL Components

URL structure breakdown showing protocol, domain, path, and query parameters
ComponentValueDescription
Protocol - The protocol used (e.g., http, https)
Username - Optional username in URL authentication
Password - Optional password in URL authentication
Domain - The domain or hostname
Port - Optional port number
Path - The path to the resource
Query Parameters - Parameters passed to the server
Hash/Fragment - Anchor to a specific part of the page

What is URL Encoding (Percent-Encoding)?

URL encoding, also known as percent-encoding, is a mechanism defined in RFC 3986 for translating characters that are unsafe or reserved in a Uniform Resource Identifier (URI) into a format that can be safely transmitted over the Internet. Each unsafe character is replaced by a percent sign (%) followed by two hexadecimal digits representing its byte value in UTF-8.

For example, a space becomes %20, a question mark becomes %3F, and the ampersand becomes %26. This ensures URLs remain valid across browsers, servers, proxies, and API gateways.

Why Use a URL Encoder/Decoder?

URLs have a strict syntax and only a small set of characters is allowed without escaping. Whenever you embed user input, file names, search terms, or arbitrary data into a URL, you must encode it - otherwise reserved characters like ?, &, #, / and spaces will break routing, query string parsing, or redirects.

A URL decoder reverses this process, turning %20 back into a space and %C3%A9 back into é, so you can inspect payloads from server logs, analytics URLs, or deep links in a human-readable form.

How to Encode or Decode URLs Online (Step-by-Step)

Using the tool is straightforward and takes just a few seconds:

  1. Paste your URL or plain text into the Input URL field, or click Sample to load an example.
  2. Choose the mode - Decode URL to unescape percent-encoded sequences, or Encode URL to escape special characters.
  3. The result appears instantly in the output field. Click Copy to place it on your clipboard.

The tool also parses the URL and shows a breakdown of its components (protocol, host, path, query parameters, fragment) so you can verify the structure at a glance.

Why Choose Our URL Encoder

Our URL encoder is designed for developers who need a fast, accurate, and private way to handle percent-encoding. It uses the browser's native encodeURIComponent and decodeURIComponent implementations, so the result matches exactly what your JavaScript code would produce in production.

There are no ads, no sign-up, no file uploads and no throttling - just instant results with a built-in URL component inspector, sample data, and one-click copy.

How URL Encoding Works (Reserved vs Unreserved Characters)

RFC 3986 splits URI characters into two groups. Unreserved characters (A-Z, a-z, 0-9, -, ., _, ~) are always safe and never encoded. Reserved characters (:/?#[]@!$&'()*+,;=) have special meaning in URLs and must be percent-encoded when used as data rather than as delimiters.

For non-ASCII characters, the value is first encoded as UTF-8, then each byte is represented as %XX. That is why the character é becomes %C3%A9 - two bytes in UTF-8, each written as a percent-escaped hex pair.

Features

Everything you need in a single page, optimized for real-world URL work:

  • Encode URL - escape reserved and non-ASCII characters using encodeURIComponent.
  • Decode URL - unescape percent-encoded sequences, including multi-byte UTF-8.
  • URL component inspector - see protocol, host, port, path, query parameters and fragment at a glance.
  • Copy to clipboard for the full result or for any individual URL component.
  • Sample data to quickly try encoding or decoding without typing.
  • Paste from clipboard and automatic live processing on every keystroke.

Common Use Cases

URL encoding is a daily task for web, backend, and mobile developers. Typical scenarios include:

  • Query strings - safely appending user search terms or filter values to URLs.
  • REST APIs - sending path and query parameters that include spaces, slashes, or Unicode.
  • OAuth redirects - encoding redirect_uri and state parameters per RFC 6749.
  • Analytics / UTM parameters - building campaign URLs with readable but safely escaped values.
  • Deep links and app links - encoding payloads passed to mobile apps or single-page applications.
  • Debugging server logs - decoding captured URLs to understand what a client actually sent.

Is It Safe to Encode URLs Online?

Yes. This URL encoder is fully client-side - all encoding and decoding happens in your browser via standard JavaScript APIs. Your URLs, tokens, and query strings are never uploaded to any server and are not logged, stored, or shared.

You can safely use it on sensitive data such as OAuth tokens, signed links, or staging URLs - closing the tab is enough to remove every trace from this session.

Why Choose DevTools

DevTools is a curated suite of free, privacy-respecting developer utilities. Every tool runs locally in your browser, loads quickly, and is built with the same standards you would use in production - no guesswork, no tracking, no paywall.

Together the tools cover the full developer workflow: data conversion, encoding, formatting, diffing and inspection, so you can stop stitching together random single-purpose websites.

Download & Copy Options

Once you have the encoded or decoded result you can copy it to the clipboard with a single click, or copy any individual parsed component (host, path, query) from the URL components table. This makes it easy to move values into other tools or into your own code.

Need to go further? Combine this page with other DevTools utilities: URL to QR Code, Base64 Encoder / Decoder, and Hex Converter - building a smooth workflow from raw text to safely transmitted payloads.

FAQ

What is the difference between encodeURI and encodeURIComponent?

encodeURI is meant for a complete URL and leaves reserved delimiters such as :/?#&= untouched. encodeURIComponent is meant for a single URL component (for example a query-string value) and also escapes those delimiters. This tool uses encodeURIComponent, which is the safe default when you are escaping user-provided values.

Which characters are considered reserved in a URL?

Per RFC 3986 the reserved characters are :/?#[]@!$&'()*+,;=. Any other ASCII symbol outside the unreserved set (A-Z a-z 0-9 - . _ ~) must also be percent-encoded when used as data.

How are Unicode characters handled?

Non-ASCII characters are first encoded as UTF-8 bytes, then each byte is written as %XX. For example é becomes %C3%A9 and the emoji 😀 becomes %F0%9F%98%80.

What is the difference between + and %20 for spaces?

In the application/x-www-form-urlencoded format (HTML form submissions) a space is encoded as +. In a generic URL path or query per RFC 3986 a space is encoded as %20. This tool produces %20, which is always safe; decoders accept either form.

Is it safe to paste sensitive URLs here?

Yes. The tool runs entirely in your browser. Nothing you paste is uploaded, logged, or stored on any server.

Why does my decoded URL still contain % characters?

That usually means the URL was encoded more than once (double-encoded). Run the decoder again on the result until no %XX sequences remain.

Is this URL encoder free?

Yes - it is completely free with no registration, no ads, and no usage limits.

URL Encoding Learning Resources

To deepen your understanding of URL encoding, URI syntax and percent-encoding, explore these authoritative references: