URL Encoder & Decoder

Quickly encode or decode URLs and text with special characters.

url encoderurl decoderurl encode decodepercent encoding

Interactive Tool

...

Intro

URL encoding (percent-encoding) is used to safely transmit special characters over HTTP.

This fast tool helps you effortlessly switch between raw text and URL-safe encoded text.

How to use

  1. Input Text or URL
    Paste your text or a fully URL-encoded string.
  2. Choose Action
    Click Encode to make it URL-safe, or Decode to read it.
  3. Copy Result
    Copy the final string output.

Examples

Encode Spaces
Shows how spaces are converted.
Input
hello world
Output
hello%20world
Decode Chinese
Converts percent-encodings back to text.
Input
%E4%BD%A0%E5%A5%BD
Output
你好
Decode URL
Decode a percent-encoded URL string back to readable text.
Input
https%3A%2F%2Fexample.com%2Fpath%3Fq%3Dhello%20world
Output
https://example.com/path?q=hello world

FAQ

What is URL encoding?

URL encoding (percent-encoding) replaces unsafe or non-ASCII characters in a URL with % followed by two hexadecimal digits, ensuring the URL remains valid for HTTP transmission.

When should I encode or decode a URL?

Encode when passing data as a URL parameter (e.g., query strings with spaces or special characters). Decode when you need to read or log a previously encoded URL.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL but preserves characters like :/?#&. encodeURIComponent encodes everything, including those reserved characters, making it suitable for individual query parameter values.

Related tools

Related guides

  • No related guides in the current seed set.