Skip to main content
Free - No Sign-up Required

URL Encoder & Decoder

Encode and decode URLs online with support for encodeURIComponent and encodeURI. Perfect for query strings, API parameters, and URL paths.

Mode

Choose whether to encode or decode URLs

For query parameters and URL parts. Encodes all special characters including / ? # : @ & = + $ ,

Input

Enter the text or URL to encode

Output

Encoded URL

Quick Examples

Encoding query parameters:

Input: search?q=hello world&lang=en
Output: search?q=hello%20world&lang=en

Encoding special characters:

Input: name=John Doe&[email protected]
Output (Component): name%3DJohn%20Doe%26email%3Djohn%40example.com

Encoding full URL:

Input: https://example.com/path with spaces/file.html
Output (URI): https://example.com/path%20with%20spaces/file.html

Why Use Our URL Encoder?

Two Encoding Modes

Choose between encodeURIComponent for query parameters or encodeURI for full URLs.

100% Private

All processing happens in your browser. Your URLs are never sent to any server.

Real-time Conversion

See results instantly as you type. Automatic detection for decoding mode.

Common Use Cases

Query Parameters

Encode form data and search queries for URL parameters

URL Paths

Encode file names and folder paths with special characters

API Integration

Properly encode API request parameters and endpoints

Email Addresses

Encode email addresses in URLs

Understanding URL Encoding

1

encodeURIComponent

Use this for encoding individual URL components like query parameters, form data, or any part of a URL that might contain special characters.

2

encodeURI

Use this for encoding complete URLs. It preserves URL structure characters but encodes spaces and other special characters.

Your Privacy is Protected

This tool runs entirely in your browser using JavaScript. Your data is never uploaded to our servers or any third-party service. Everything happens instantly on your device.

Want more productivity tools?

Sign up for Txtpipe to access AI-powered task management, location-based reminders, and more.

No credit card required