URL Encode & Decode
Utility Workspace

URL Encode & Decode

Encode or decode URLs instantly — type on either side.

BidirectionalInstant resultNo limitsDev ready
Developer Snippets

Ready-to-use examples in multiple languages

Switch between snippets, inspect the highlighted code, and copy the version that fits your stack.

Code Preview

Python

python12 lines
import urllib.parse

# Define URL
original_url = "https://example.com/?name=John Doe"

# Encode URL
encoded_url = urllib.parse.quote(original_url)
print(encoded_url)

# Decode URL
decoded_url = urllib.parse.unquote(encoded_url)
print(decoded_url)
Tool Guide

What is URL Encoding?

URL encoding is a method to represent special characters in a URL by replacing them with encoded counterparts. This ensures that the URL remains valid and does not interfere with the structure of the web address.
Practical Flow

How to Use This Tool

  1. 1
    Encode Data (Left Side): Enter your text in the left text box to encode it for a URL.
  2. 2
    Decode Data (Right Side): Enter your URL-encoded text in the right text box to decode it.
  3. 3
    Get Result: The result will be displayed on the opposite side, ready for you to copy and use.
Reference

Example

  • Encoding: If you have a text like Hello, World!, encoding it will produce Hello%2C%20World%21
  • Decoding: If you have a URL-encoded text like Hello%2C%20World%21, decoding it will produce Hello, World!
Keep In Mind

Important Note

This tool is designed for general use. While it's handy for understanding URL encoding, exercise caution with sensitive data.