Home/Developer Tools/URL Encoder/Decoder

URL Encoder/Decoder

Encode and decode URL components, full URLs, and create URL-safe slugs. Convert special characters to percent-encoded format or reverse the process. Your data is processed locally in your browser and is never uploaded.

Enter query parameters, path segments, or any text that needs URL encoding.

How to Use the URL Encoder/Decoder

  1. 1. Select your encoding mode

    Choose between encoding/decoding a URL component (like query parameters), a full URL with protocol and domain, or creating a URL-safe slug from plain text.

  2. 2. Enter your text or URL

    Paste or type the text you want to encode, decode, or convert. Your input stays in your browser and is never sent to a server.

  3. 3. Choose encode or decode

    For URL components and full URLs, select whether you want to Encode (convert special characters to percent-encoded format) or Decode (reverse the process).

  4. 4. Copy the result

    Click Copy output to copy the transformed text to your clipboard. Use it in URLs, query strings, or anywhere URL-safe text is required.

Understanding URL Encoding

URLs have rules about which characters are allowed. Spaces, special characters, and non-ASCII characters must be converted to a percent-encoded format before being used in URLs. This tool helps you encode and decode these values quickly.

URL Components

Query parameters, path segments, and fragment identifiers often contain spaces and special characters. Use component encoding to safely encode only those parts of a URL while preserving the URL structure.

Input: hello world
Encoded: hello%20world

Full URL Encoding

Full URL encoding preserves URL structure (protocol, domain, path separators) while encoding special characters. Use this when encoding an entire URL.

Input: https://example.com/search?q=hello
Encoded: https://example.com/search?q=hello

URL Slugs

A slug is a URL-safe version of text, typically lowercase with spaces converted to hyphens. Slugs are commonly used in blog URLs and SEO-friendly links.

Input: Hello World!
Slug: hello-world

Reserved Characters

Some characters have special meaning in URLs (like ?, &, #, /) and are only encoded when necessary. Component encoding handles this correctly.

Common URL encoding examples

  • Space: hello world → hello%20world
  • Ampersand: a & b → a%20%26%20b
  • Email: [email protected] → user%40example.com
  • Slash: path/to/file → path%2Fto%2Ffile
  • Plus: 2 + 2 → 2%20%2B%202

When to Encode or Decode URLs

Web development

Encode query parameters and path segments when building URLs dynamically in JavaScript, or decode received parameters to display them properly.

API requests

Many APIs require URL-encoded parameters. Use this tool to encode search queries and filter values before sending them to the API.

SEO & blogging

Create URL-safe slugs from article titles and page names to improve readability and SEO rankings.

Email links

When creating mailto or tracking links with special characters, encoding ensures they work correctly across email clients and applications.

Debugging

Decode URLs from logs or browser history to see the original values and troubleshoot parameter issues.

Data migration

When moving data between systems with different URL formats, use encoding/decoding to ensure compatibility.

This tool uses your browser's built-in URL encoding functions, which follow the standard percent-encoding rules (RFC 3986). All processing happens locally and your data is never uploaded.