---
title: "URL Encoder & Decoder — Free Online Tool"
description: "Encode reserved characters for safe use in a URL, or decode an encoded string back to plain text. Handles full URLs and single query-string parts."
---

# URL Encoder & Decoder

- **Category:** Encoding
- **Built with:** Hercules
- **Open the tool:** [url-encoder-decoder.onhercules.app](https://url-encoder-decoder.onhercules.app)

## About URL Encoder & Decoder

URL encoding (also called percent encoding) replaces unsafe characters with a % followed by their hex byte. Browsers do this automatically when you submit a form, but you'll often need to encode by hand when building URLs from code.

## Frequently asked questions

### What's the difference between encodeURI and encodeURIComponent?

encodeURI leaves URL-structural characters alone (: / ? &). encodeURIComponent encodes them — use it for query parameter values.

## Want a utility like this, but yours?

URL Encoder & Decoder is a Hercules app. Remix it, change anything, and ship it on your own domain in minutes.

## Related utilities

- [Base64 Encoder & Decoder](https://hercules.app/utilities/base64-encoder-decoder) (Encoding): Convert text to and from Base64.
- [JSON Formatter & Validator](https://hercules.app/utilities/json-formatter) (Formatters): Pretty-print, minify, and validate JSON with a tree view.

```json
[
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://hercules.app"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Utilities",
        "item": "https://hercules.app/utilities"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "URL Encoder & Decoder",
        "item": "https://hercules.app/utilities/url-encoder-decoder"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "@type": "WebApplication",
    "name": "URL Encoder & Decoder",
    "description": "Encode reserved characters for safe use in a URL, or decode an encoded string back to plain text. Handles full URLs and single query-string parts.",
    "url": "https://hercules.app/utilities/url-encoder-decoder",
    "applicationCategory": "DeveloperApplication",
    "operatingSystem": "Web",
    "browserRequirements": "Requires JavaScript",
    "isAccessibleForFree": true,
    "offers": {
      "@type": "Offer",
      "price": "0",
      "priceCurrency": "USD"
    },
    "publisher": {
      "@type": "Organization",
      "name": "Hercules",
      "url": "https://hercules.app"
    }
  },
  {
    "@context": "https://schema.org",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "What's the difference between encodeURI and encodeURIComponent?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "encodeURI leaves URL-structural characters alone (: / ? &). encodeURIComponent encodes them — use it for query parameter values."
        }
      }
    ]
  }
]
```
