Calculator Apps

💰 Finance

EMI Calculator SIP Calculator GST Calculator Income Tax Calculator Percentage Calculator CTC Calculator PF Interest Calcualtor Electricity Consumption Calcualtor Credit Card Interest Calcualtor UPI Charge Calcualtor

💖 Health

BMI Calculator Calorie Calculator Body Fat

🛠️ Developer Tools

JSON Formatter JSON Converter Password Generator Word Counter Invoice Generator Youtube Thumbnail Downloader PDF Tools QR Generator Dummy Data Generator Resume Generator Timestamp Converter AI Logo Generator URL Encoder / Decoder Open Graph Generator Data Sanitizer JSON Path Extractor YAML To TOMAL YAML To JSON Mermaid Live Editor OCR Tool Normal Distribution Calculator Sprite Sheet Splitter Dummy Credit Card Generator Postman To Curl Converter

🖼️ Image Tools

Image Format Converter Image Size Compressor Favicon Generator Image Crop & Resize Resize Animated WEBP Base64 Image Toolkit

📄 CSS Tools

CSS Gradient Generator Box Shadow Generator Flexbox Generator CSS Grid Generator Color Palette Generator CSS Neon Glow Text Generator

🎬 Entertainment Tools

Love Calcualtor

🛠️ Text Tools

Case Converter Remove Duplicate Lines Text Sorter Reverse Text Remove Empty Lines Find And Replace MarkDown Editor Unique Code Converter ASCII Converter Slugify String

☁ Cloud Tools

AWS Cron Generator Azure Cron Generator Google Cron Generator IAM Policy Validator S3 Bucket Policy Generator Terraform Variable Generator Terraform Formatter Terraform Validator Kubernetes Resource Calculator Docker Resource Calculator Shopify Profit Margin Calculator

🛠️ Data Formatter & Converter

SQL Query Fromatter CSV to Markdown Table Converter JSON to JSONL Converter PHP Array To JSON Converter

🛠️ security & Analytics utilities

UTM Generator SHA256 Checksum Verifier DMARC Record Generator LangChain Converter Clean Text for LLM Training Data Claude Token & Cost Estimator FBX To OBJ Converter JWT Toolkit

Data Conversion Tool

SQL to JSON JSON to SQL CSV to JSON JSON to CSV XML to JSON JSON to XML JSON to YAML JSON Code Generator

URL Encoder / Decoder

Percent-encode URLs, decode them back, parse query strings, and convert Base64. Runs entirely in your browser.

Input
Ready
Output
URL Component Breakdown
Enter a URL above to see its components.
Query String Parser
Query Builder
Generated Query String
?
Text Input
Base64 Output
Decode Base64 → Text
Common Percent-Encoded Characters
Quick Reference: encodeURI vs encodeURIComponent

encodeURI() encodes a complete URL — it leaves reserved characters like /:?#[]@!$&'()*+,;= unencoded because they have meaning in a URL structure.


encodeURIComponent() encodes a URL component (a single query value or path segment) — it encodes everything except letters, digits, -_.!~*'(). Use this for query parameter values.


Percent-encoding replaces unsafe characters with a % followed by two hex digits (UTF-8 byte value). For example, a space becomes %20 or + in query strings.

What is URL Encoding?

URL encoding, also known as percent encoding, is the process of converting special characters into a format that can be safely transmitted over the internet. Characters such as spaces, ampersands (&), question marks (?), slashes (/), and hash symbols (#) are replaced with percent (%) followed by their hexadecimal values.

For example, a space becomes %20, while an ampersand becomes %26. URL encoding ensures that browsers, web servers, and APIs correctly interpret URLs without breaking query parameters or paths.

URL Encoding vs URL Decoding

URL Encoding URL Decoding
Converts readable text into percent-encoded values. Converts percent-encoded values back into readable text.
Used before sending data. Used after receiving encoded data.
Example: Space → %20 Example: %20 → Space

Free URL Encoder & Decoder Tool

Easily encode and decode URLs, URI components, query strings, and Base64 text with our free online URL Encoder & Decoder. Whether you're a web developer, API tester, SEO specialist, backend engineer, or student, this tool helps you safely convert URLs into their encoded format and decode them back into readable text instantly.

Everything runs directly inside your browser, ensuring your data remains private. No uploads, no registration, and no server processing are required. Simply paste your URL or text, click the desired action, and copy the result with a single click.

Encode and Decode URLs Instantly

URL encoding converts special characters into percent-encoded values so they can be transmitted safely over the internet. Likewise, URL decoding restores encoded strings back to their original readable form.

This tool supports both complete URL encoding and URI component encoding, making it suitable for REST APIs, query parameters, redirects, web applications, and browser development.

Common URL Encoded Characters

Character Encoded Value
Space%20
!%21
"%22
#%23
$%24
&%26
'%27
(%28
)%29
+%2B
,%2C
/%2F
:%3A
;%3B
=%3D
?%3F
@%40

URL Encoding Example

Original URL

https://example.com/search?q=hello world&lang=en

Encoded URL

https://example.com/search?q=hello%20world%26lang%3Den

This example shows how spaces and reserved characters are converted into percent-encoded values to ensure the URL is transmitted correctly.

URL Encoding in Popular Programming Languages

JavaScript


encodeURIComponent("hello world");

PHP


urlencode("hello world");

Python


urllib.parse.quote("hello world")

Main Features

URL Query String Parser

Working with long URLs can be difficult. The built-in Query String Parser automatically extracts URL parameters and displays them in an easy-to-edit format. Modify parameter names or values, add new parameters, remove existing ones, and instantly generate a new query string.

This feature is especially useful when testing APIs, debugging websites, creating tracking URLs, or generating dynamic links.

Query Builder

Build query strings without manually typing ampersands, equals signs, or encoded values. Enter your parameter names and values, and the tool generates a correctly formatted query string that is ready for use.

Example:

Parameter: search
Value: hello world

Generated Query:
?search=hello%20world

Base64 Encoder & Decoder

Besides URL encoding, this tool also includes a Base64 converter. Encode plain text into Base64 or decode Base64 strings back into readable text instantly.

Base64 encoding is commonly used for APIs, authentication tokens, JSON payloads, email content, binary data transmission, and configuration files.

URL Encoding Reference

The built-in reference section lists commonly used percent-encoded characters such as spaces, punctuation marks, symbols, and reserved URL characters. It also explains the difference between JavaScript's encodeURI() and encodeURIComponent() functions, helping developers choose the correct method for their use case.

Supported Operations

Who Can Use This Tool?

Common Use Cases

Why Use This URL Encoder & Decoder?

Incorrectly encoded URLs can break API requests, cause invalid redirects, or produce unexpected server responses. This tool removes the complexity by automatically handling percent encoding, reserved characters, and query parameter formatting.

Instead of relying on manual conversions or writing JavaScript code, you can encode, decode, parse, and generate URLs in just a few clicks. Everything is processed locally in your browser, making it both fast and secure.

Key Benefits

Related Developer Tools

Frequently Asked Questions

What is URL Encoding?
URL encoding converts special characters such as spaces, symbols, and reserved characters into percent-encoded values so they can be transmitted safely over the internet.
When should I use encodeURIComponent()?
Use encodeURIComponent() when encoding individual query parameters or URL components. It encodes more special characters than encodeURI().
What is the difference between encodeURI() and encodeURIComponent()?
encodeURI() encodes an entire URL while preserving URL separators. encodeURIComponent() is intended for encoding individual URL parameters and encodes reserved characters as well.
Can I decode percent-encoded URLs?
Yes. The decoder converts percent-encoded URLs back into their original readable format instantly.
Does this tool support Base64 conversion?
Yes. You can both encode plain text into Base64 and decode Base64 strings back into readable text using the integrated Base64 converter.
Is this tool secure?
Yes. All encoding, decoding, parsing, and Base64 conversions happen entirely within your browser. Your data never leaves your device.
What is percent encoding?
Percent encoding (also called URL encoding) is the process of replacing special characters with a percent sign (%) followed by two hexadecimal digits. For example, a space becomes %20 and an ampersand (&) becomes %26. This ensures URLs are transmitted correctly over the internet.
Why are spaces encoded as %20?
Spaces are not valid characters in URLs, so they must be encoded. According to URL encoding standards, a space is represented as %20. Some web forms may use the plus sign (+) for spaces in query strings, but %20 is the standard percent-encoded representation.
Can I encode only query parameters?
Yes. You can encode only the query parameter values instead of the entire URL. This prevents special characters such as spaces, ampersands, and equals signs from breaking the query string while leaving the rest of the URL unchanged.
What is UTF-8 URL encoding?
UTF-8 URL encoding converts Unicode characters into UTF-8 byte sequences before applying percent encoding. This allows URLs to safely contain international characters, symbols, and emojis while remaining compatible with browsers and web servers.
Does this support Unicode characters?
Yes. The tool supports Unicode characters, including letters from different languages, accented characters, symbols, and emojis. These characters are encoded using UTF-8 percent encoding and can be decoded back to their original form.
Can I decode an already encoded URL?
Yes. Simply paste the encoded URL into the decoder to convert percent-encoded characters back into their original readable format. This is useful when debugging URLs, API requests, or redirect links.
Is URL encoding reversible?
Yes. URL encoding is fully reversible as long as the encoded data has not been modified or corrupted. Decoding restores the original text by converting percent-encoded values back into their corresponding characters.
Can I encode file names?
Yes. File names containing spaces or special characters can be URL encoded to ensure they work correctly in download links, web applications, cloud storage services, and APIs.
Does URL encoding affect SEO?
Proper URL encoding helps browsers and search engines correctly interpret URLs containing special characters or international text. While URL encoding itself does not improve rankings, correctly encoded URLs help prevent broken links, crawling issues, and indexing problems.
What's the difference between a URL and a URI?
A URI (Uniform Resource Identifier) is a general identifier used to identify a resource, while a URL (Uniform Resource Locator) is a type of URI that specifies the resource's location and how to access it. In simple terms, every URL is a URI, but not every URI is a URL.