⚙ Text Mechanic

URL Encoder & Decoder

Encode and decode URLs, query parameters, and URI components using standard percent-encoding. Clean, safe, and instant client-side execution.

How to Use URL Encoder & Decoder

  1. Paste URL or String: Paste the web address or parameter string you want to convert.
  2. Choose Encode or Decode: Select Encode to apply percent-encoding or Decode to restore readable characters.
  3. Copy Result: Copy the resulting URL for use in code, APIs, or browser address bars.

Key Features & Capabilities

  • Full URL vs Component Mode: Choose between encodeURI (keeps :/?#) and encodeURIComponent (encodes all special characters).
  • RFC 3986 Compliant: Strict compliance with modern web URL encoding specifications.
  • Instant Live Conversion: Transforms text as you type with real-time bidirectional syncing.
  • 100% In-Browser Privacy: Your text never leaves your device or touches an external server.

Common Use Cases

  • API Query Parameters: Encode parameters containing spaces, ampersands (&), or question marks (?) for HTTP requests.
  • Tracking Link Building: Sanitize UTM parameters, referral strings, and deep link payloads.

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?
encodeURI preserves protocol and domain separators (like :// and ?), while encodeURIComponent encodes every special character.
Why are spaces converted to %20 or +?
%20 is the standard percent-encoding for a space character in URL paths, while + is commonly used in query parameters.

Related Text Utilities

Base64 Encoder & Decoder
Convert plain text to Base64 and decode Base64 back to text with UTF-8 support
JSON Formatter & Validator
Format, prettify, minify, sort keys, and validate JSON with syntax diagnostics and auto-repair
Split Text by Delimiter
Split single string into lines based on custom delimiters or symbols
Find and Replace Text
Locate and replace strings or regular expressions across your text