🔗 URL Encoder / Decoder

Encode or decode URL components and full URLs. Handles special characters safely.

Encodes all special chars (space → %20). Best for query parameters and form data.

Common URL Encodings Reference

%20Space
%26& (ampersand)
%3D= (equals)
%2F/ (slash)
%3F? (question)
%23# (hash)
%2B+ (plus)
%40@ (at)

About This Tool

URL Encoder / Decoder

Encode special characters in URLs for safe transmission, or decode encoded URLs back to readable format.

Why Use This Tool?

  • Encode URLs with special characters, spaces, or non-ASCII text for safe use
  • Decode encoded URLs to understand what parameters are being passed
  • Fix URLs broken by special characters in query strings or form submissions
  • Used by web developers and API developers when building GET requests
  • Encode JSON data or HTML content to pass safely as URL parameters

Overview

URLs can only contain a limited set of characters — letters, numbers, and a few special characters like hyphens and underscores. Special characters like spaces, &, =, #, ?, and non-ASCII characters (like Indian language scripts or accented letters) must be "percent-encoded" (also called URL-encoding) to be safely transmitted in a URL. Our URL Encoder and Decoder tool instantly converts any text to its URL-safe encoded form and decodes percent-encoded URLs back to readable text. This is essential for web developers building query strings, API developers constructing request URLs, SEO professionals handling international URLs, and anyone who needs to work with encoded URLs in browser address bars, server logs, or API documentation. The tool supports both standard URL encoding (encodeURIComponent) and full URL encoding modes so you can choose exactly which characters get encoded.

How to Use

  • 1

    Choose Encode or Decode Mode

    Select Encode to convert plain text to URL-safe format, or Decode to convert a percent-encoded string back to readable text.

  • 2

    Paste Your Input

    Enter or paste the text or URL you want to encode/decode in the input field.

  • 3

    See the Result Instantly

    The encoded or decoded output appears immediately as you type.

  • 4

    Copy the Output

    Click Copy to clipboard and use the encoded URL in your API request, HTML form, or web application.

  • 5

    Test in a Browser

    Paste the encoded URL in a browser address bar to verify it navigates correctly.

Frequently Asked Questions

Spaces are not valid URL characters. %20 is the standard percent-encoding for a space. + is sometimes used as a space in query strings (application/x-www-form-urlencoded format).
Unreserved characters that do not need encoding: A-Z, a-z, 0-9, hyphen (-), underscore (_), period (.), and tilde (~). All other characters should be percent-encoded.
encodeURI encodes a full URL, preserving characters like /, ?, =, &. encodeURIComponent encodes everything including those characters, used for encoding individual parameter values.
Non-ASCII characters in URLs (e.g., Hindi or Chinese) should be percent-encoded or use Punycode (for domains). Google handles both, but ASCII URLs are universally compatible.
Special characters in query parameters must be URL-encoded. Encode the parameter value (not the entire URL) using encodeURIComponent before including it in your request URL.