Skip to content
Text ↔ %-encoded URLDeveloper tools

URL Encode / Decode

Percent-encode text for URLs or decode %20-style links. Component, Full URL and Form data modes, line by line, with URL parts and editable parameters.

About this tool

About URL Encode / Decode

This URL encoder and decoder converts text to and from percent-encoding, the format URLs use for characters that are not allowed or have a special meaning in a web address. Choose Encode or Decode, then choose the mode. Component mode encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for a single piece that goes inside a URL — a search term, a query-string value, a path segment or a redirect URL passed as a parameter — because it also encodes & = ? / # : and +, which would otherwise break the URL. So “chai & samosa” becomes “chai%20%26%20samosa”. Full URL mode is for a complete address: it keeps the characters that give a URL its structure (: / ? # & = and others) and encodes only what is not allowed, such as spaces and non-English letters, so “https://example.com/my page?q=café” becomes “https://example.com/my%20page?q=caf%C3%A9”. Form data mode works like Component but writes a space as +, as HTML forms do. Decoding works the same way in reverse, and “Decode until nothing is left” undoes text that was encoded more than once and tells you how many times. “Each line on its own” handles a whole list in one go, so one bad line does not spoil the rest. When you paste a complete URL, its scheme, host, path and query parameters are listed separately, with the values decoded; change, add or remove a parameter and the URL is rebuilt with the right encoding. Text is encoded as UTF-8, the standard for the web, so Hindi, emoji and symbols such as ₹ work: “₹” becomes “%E2%82%B9”. The result updates as you type, and Copy puts it on your clipboard. If the text you are decoding contains a broken sequence, such as a % sign not followed by two hex digits, the tool tells you at which character it is, instead of giving a wrong result. The tool runs in your browser using the same functions as JavaScript’s encodeURIComponent and encodeURI, so its output matches what your code produces. An option also encodes the characters ! ' ( ) and *, which some servers and signing methods such as OAuth expect. For form data or search URLs where + means a space, choose Form data.

URL Encode / Decode tool

When you need URL encoding

Links that do not break

Search and query values

Spaces and & in a value break a query string.

Example?q=chai%20%26%20samosa instead of ?q=chai & samosa.

WhatsApp click-to-chat links

The message text in wa.me links must be encoded.

Examplewa.me/919876543210?text=Hi%2C%20is%20this%20available%3F

Redirect URLs as parameters

A URL inside another URL must be encoded as a component.

Example/login?next=https%3A%2F%2Fexample.com%2Fcart

Read an encoded link

Tracking links and logs are full of %2F and %3D.

ExampleDecode a long marketing link to see where it really goes.

API calls and curl

Query parameters in API requests must be encoded.

ExampleEncode a date range or filter before adding it to a curl command.

Non-English URLs

Hindi or accented words in links are sent as UTF-8 codes.

ExampleDecode %E0%A4%A8%E0%A4%AE%E0%A4%B8%E0%A5%8D%E0%A4%A4%E0%A5%87 to नमस्ते.

Encoding tips

Pick the right mode

Component for parts

Encode each value on its own with Component, then join them with & and =. Encoding a whole URL as a component breaks its slashes.

Do not encode twice

If you see %2520, the text was encoded twice (%25 is the % sign). Tick “Decode until nothing is left”, then encode once.

Plus signs and spaces

Forms send spaces as +. Choose Form data to encode or decode them that way; the other modes treat + as a plus.

Building tracking links?

Make campaign URLs with correctly encoded UTM tags.

Open UTM Builder

Base64 is different

Base64 turns data into text; URL encoding makes text safe in a link.

Open Base64 Encoder

HTML entities are different too

For codes such as amp and lt in HTML, use the HTML entity tool.

Open HTML Entity Encoder
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed URL Encode / Decode and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 24 November 2026

Answers and guidanceFrequently Asked Questions
What is URL encoding?
Also called percent-encoding, it replaces characters that are not allowed in URLs with % and two hex digits for each UTF-8 byte. A space becomes %20 and “é” becomes %C3%A9.
What is the difference between Component and Full URL?
Component (encodeURIComponent) also encodes & = ? / # : so a value cannot break the URL. Full URL (encodeURI) keeps those characters so a complete link stays usable.
How do I read the parameters of a long link?
Paste the whole link. Its query parameters are listed with decoded values, and you can edit or remove them, for example to take out tracking tags.
Why is a space %20 and not +?
In URLs a space is %20. The + form is used in HTML form data; choose Form data to get it.
Why do I get an error when decoding?
The text contains a % not followed by two hex digits, or codes that are not valid UTF-8. The message shows the character. Check for a stray % sign or a link that was cut short.
What does %2520 mean?
The URL was encoded twice: %25 is an encoded % sign. Press Decode fully to get the original text in one step.
Does it work with Hindi and emoji?
Yes. Text is encoded as UTF-8, so any language and emoji are encoded and decoded correctly.
Is my text sent anywhere?
No. Encoding and decoding happen in your browser.
More tools for your workflowRelated Tools

Base64 Encode/Decode

Encode text or files to Base64 and decode Base64 back to text, images or files. UTF-8 safe, URL-safe option, data URIs, all in your browser.

HTML Entity Encoder / Decoder

Encode special characters as HTML entities (such as amp, lt and copy) or decode named and numeric entities back to text. Live result, one-click copy.

UTM Link Builder

Build Google Analytics campaign URLs with UTM tags: presets for WhatsApp, Instagram, email and ads, the GA4 channel your link will count under, mistake warnings and a QR code.

URL Slug Generator

Turn titles into clean URL slugs: accents removed, symbols spelled out, optional Hindi letters, stop-word removal, length limit and bulk mode.

1 / 3
Browse all developer tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.