URL Encoder/Decoder

Our URL encoder decoder converts URLs and text to percent-encoded format and back in real-time. Encode special characters, query parameters, path segments, and Unicode text for safe use in URLs. Decode percent-encoded strings back to readable text. Supports RFC 3986 standard encoding, component encoding, and full URL encoding with UTF-8 support. All processing is client-side — your data never leaves your browser.

star 4.9
auto_awesome AI
New
Method:
0 characters 0 bytes
0 characters

auto_awesome AI Analysis

Powered by Claude

URL Encoding Analysis:

  • Mode: Encode text → percent-encoded URL
  • Standard: RFC 3986 percent encoding

Tip: Use encodeURIComponent for query values, encodeURI for full URLs.

lightbulb Tips

  • Use encodeURIComponent for query values
  • Spaces → %20 (standard) or + (form data)
  • A-Z a-z 0-9 - _ . ~ are never encoded
  • Always encode user input before URLs

How to Use This Calculator

swap_horiz

Choose Mode

Select Encode to convert text to URL encoding, or Decode to convert percent-encoded text back.

tune

Select Method

Choose Component (for query values), URI (for full URLs), or Form Data (+ for spaces).

text_fields

Enter Input

Type or paste your text (for encoding) or encoded URL (for decoding).

content_copy

Get Result

The result appears instantly. Click Copy to copy to clipboard.

The Formula

URL encoding (percent encoding) replaces unsafe or reserved characters with a percent sign (%) followed by two hexadecimal digits representing the character's byte value. For example, a space becomes %20, and '&' becomes %26. UTF-8 characters use multiple percent-encoded bytes (e.g., '€' → %E2%82%AC). Unreserved characters (letters, digits, -, _, ., ~) are never encoded.

URL Encoding = replace unsafe characters → %HH (hex byte value)

lightbulb Variables Explained

  • %HH Percent sign followed by two hexadecimal digits representing the byte value
  • Unreserved chars A-Z a-z 0-9 - _ . ~ (never encoded)
  • Reserved chars : / ? # [ ] @ ! $ & ' ( ) * + , ; = (encoded in components)
  • UTF-8 Multi-byte characters encoded as multiple %HH sequences

tips_and_updates Pro Tips

1

Use encodeURIComponent for query parameter values — it encodes everything except A-Z a-z 0-9 - _ . ~

2

Use encodeURI for full URLs — it preserves :, /, ?, #, &, = and other URL structure characters

3

Spaces can be encoded as %20 (standard) or + (form data / application/x-www-form-urlencoded)

4

Always encode user input before inserting into URLs to prevent injection attacks

5

UTF-8 characters like emojis get encoded as multiple %HH bytes (e.g., 😀 → %F0%9F%98%80)

6

Double-encoding happens when you encode an already-encoded string — decode first if unsure

7

RFC 3986 defines the standard: unreserved characters (A-Z a-z 0-9 - _ . ~) are never encoded

Encode & Decode URLs Online

Our free URL encoder decoder converts text to percent-encoded format and back instantly. Encode query parameters, path segments, and special characters for safe URL usage. Decode percent-encoded strings back to readable text. Supports UTF-8 and all Unicode characters.

URL Encoder - Text to Percent Encoding

Convert any text to URL-safe percent encoding instantly. Our encoder handles spaces, special characters, Unicode, and emojis. Choose between component encoding (for query values), URI encoding (preserving URL structure), or form data encoding (+ for spaces).

URL Decoder - Percent Encoding to Text

Decode any percent-encoded URL back to readable text. Paste encoded URLs, query strings, or individual parameters and see the original text instantly. Handles %HH sequences, plus-as-space, and multi-byte UTF-8 characters.

Frequently Asked Questions

sell

Tags

verified

Data sourced from trusted institutions

All formulas verified against official standards.