Skip to main content

URL Encoder/Decoder

Encode or decode URLs and URL components online.

URL Encoder/Decoder

URL Encoder/Decoder

Online tool

Context Context-aware encoding preserves URL structure where appropriate.

Drag & drop a .txt file here for batch processing · maximum

Input

URL detected %XX encoding detected Possible double encoding Invalid percent sequence
chars %XX
Input exceeds limit

Output

Enter a valid absolute URL to inspect its structure.
parameters
Enter a URL or query string to parse parameters.
Key Value State
chars %XX

URL Utilities

Smart Detection

Automatic
Input type
Encoded content
Malformed encoding
Double encoding

Encoding Statistics

Input bytes
Output bytes
Encoded tokens
Parameters

Round-Trip Verification

Encode/decode the current value and compare the result with the original.

Encoded Character Mapping

Visual %XX representation of encoded bytes.

Multi-Level Encoding Inspector

Decode each layer separately to identify nested or double-encoded URLs.

Run the layer analyzer to inspect recursive URL encoding.

Developer Code Snippets

Equivalent encoding or decoding operations for common languages.

Batch Results

Per-line processing status.

successful · errors
# Input Output Status
✓

Your data stays in your browser

URL and text processing is performed locally in your browser. AabiTech does not need to receive, fetch, execute or store the URL content. Imported files are processed locally as well.

EncodeURIComponent

Suitable for individual URL components such as query parameter names, values and path segments.

EncodeURI / Full URL

Designed for complete URLs while preserving structural characters such as protocol separators, query delimiters and fragments.

Query Parser

Inspect, edit and rebuild query parameters while retaining repeated, empty and bare parameters.

⚡

Fast to use

Designed to help you complete the task without unnecessary steps.

◇

Works in your browser

No separate desktop software is needed for this online tool.

✓

Simple workflow

Enter your information, use the tool and work with the result.

What Is URL Encoding and Decoding?

URL encoding, also called percent-encoding, converts characters that need special handling in a URL into a percent sign followed by hexadecimal values. For example, a space can become %20, while an ampersand can become %26. URL decoding reverses this process and turns percent-encoded text back into readable characters.

A URL Encoder & Decoder is useful when you are working with query parameters, API requests, redirect URLs, search links, form data, or text containing spaces and special characters. Use the encoder when preparing data for a URL and the decoder when you need to inspect or recover readable text from an encoded value.

How to Use the URL Encoder & Decoder

Using the AabiTech URL Encoder & Decoder is straightforward:

  1. Enter or paste your text, URL, or encoded string into the input area.
  2. Choose whether you want to encode or decode.
  3. For encoding, make sure the input represents the type of URL data you are working with.
  4. Review the converted result.
  5. Copy the result and use it in your URL, query parameter, application, or code.

For a single query parameter value, component-style encoding is generally appropriate because characters such as &, =, ?, and / can otherwise be interpreted as part of the surrounding URL structure. For a complete URL, the structural characters need to remain meaningful.

URL Encoding vs URL Decoding

URL encoding changes text into percent-encoded form.

For example:

hello world & students

becomes:

hello%20world%20%26%20students

URL decoding performs the reverse conversion:

hello%20world%20%26%20students

becomes:

hello world & students

Encoding is commonly needed when inserting user-entered data into a URL. Decoding is useful when inspecting query parameters, redirect URLs, API data, browser-generated links, or other strings containing percent-encoded characters.

encodeURI vs encodeURIComponent

JavaScript provides two commonly encountered functions for URI encoding: encodeURI() and encodeURIComponent(). They are not interchangeable.

encodeURI()

Use it when working with a complete URL whose structural characters should remain intact.

Example:

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

can become:

https://example.com/search?q=hello%20world

encodeURIComponent()

Use it when encoding an individual value that will be placed inside a URL.

Example:

hello & world

becomes:

hello%20%26%20world

The distinction is important. Encoding an entire URL with component encoding can encode characters such as : and /, while failing to encode a parameter value can allow characters such as & to be interpreted as URL delimiters.

Common URL Encoded Characters

Percent encoding represents characters using % followed by hexadecimal digits. Some common examples are:

Character Encoded
Space %20
! %21
# %23
$ %24
% %25
& %26
+ %2B
/ %2F
= %3D
? %3F
@ %40

The exact characters that should be encoded depend on where the value occurs in a URL.

%20 vs + for Spaces

A space is commonly represented as %20 in percent encoding.

For example:

hello world becomes hello%20world.

In application/x-www-form-urlencoded form data, spaces can instead be represented by +. These are related but context-dependent conventions; a + should not automatically be treated as a space in every URL context.

This distinction is especially important when debugging query strings and form submissions.

Common URL Encoding Problems

Invalid percent sequence

A percent-encoded sequence normally has % followed by two hexadecimal characters. A value such as %2G is invalid because G is not a hexadecimal digit.

Unencoded ampersand

If an ampersand is part of a parameter's value, it may need encoding as %26. Otherwise, it can be interpreted as the separator between query parameters.

Encoding a complete URL as a component

Applying component encoding to an entire URL can encode characters such as : and /, producing something like https%3A%2F%2Fexample.com when an intact URL was required.

Double encoding

If %20 becomes %2520, the percent character has itself been encoded as %25. This is a common indication that a value has been encoded more than once.

Double URL Encoding Explained

Double encoding occurs when an already encoded value is encoded again.

For example:

hello world first becomes hello%20world.

If that result is encoded again, the percent character can become %25, producing:

hello%2520world

When decoding, one pass can restore %20; another pass can restore the original space.

If you see %25 immediately before what looks like an encoded sequence, check whether the value has been encoded more than once.

Common Uses of URL Encoding

URL encoding is commonly useful when working with:

  • Search queries
  • Query-string parameters
  • API requests
  • Redirect URLs
  • Callback URLs
  • Web forms
  • Tracking parameters
  • UTM URLs
  • User-entered text in URLs
  • Unicode and non-English text
  • URLs containing special characters

It is particularly important when data contains characters that already have structural meaning in a URL, such as &, =, ?, #, or /.

Browser-Based URL Encoding and Decoding

The AabiTech URL Encoder & Decoder processes URL data in the browser rather than requiring the text to be uploaded to a server.

This is useful when working with URLs containing query parameters, private application information, or other data that you prefer to keep within your browser session.

For highly sensitive credentials, tokens, passwords, or authentication information, users should still avoid pasting secrets into any third-party website unless they understand and trust its processing model.

Questions & answers

Frequently Asked Questions

What is URL encoding?
URL encoding, also called percent-encoding, converts characters that need special handling in a URL into percent-encoded representations such as %20 for a space and %26 for an ampersand.
What is a URL decoder?
A URL decoder converts percent-encoded text back into readable characters. For example, %20 can be decoded to a space.
How do I encode a URL online?
Paste the text or URL into the AabiTech URL Encoder & Decoder, choose the appropriate encoding operation, and copy the resulting encoded value.
How do I decode an encoded URL?
Paste the percent-encoded URL or text into the decoder and run the decode operation. Encoded sequences such as %20, %26, and %3D are converted back into their corresponding characters.
What does %20 mean in a URL?
%20 is the percent-encoded representation of a space character.
What does %26 mean in a URL?
%26 represents the ampersand character (&) in percent encoding. It is particularly useful when an ampersand is part of a parameter value rather than a query-parameter separator.
What is the difference between encodeURI and encodeURIComponent?
encodeURI() is intended for a complete URI and preserves URL structure, while encodeURIComponent() encodes an individual component and therefore escapes more URL-reserved characters.
Should I use %20 or + for spaces?
%20 is the standard percent-encoded representation of a space. + is commonly used to represent spaces in application/x-www-form-urlencoded form data. The correct representation depends on the context.
Why does my URL contain %25?
%25 represents a percent sign. If you see %2520, for example, the percent sign in %20 has probably been encoded again, which indicates double encoding.
Why does URL decoding fail?
A decoder can fail when the input contains an invalid percent sequence, such as a percent sign that is not followed by two valid hexadecimal characters. Check the encoded string for malformed sequences.
Can URL encoding handle Unicode characters?
Yes. URL percent encoding can represent Unicode characters using their UTF-8 byte representation.
Is URL encoding the same as encryption?
No. URL encoding is a representation and escaping mechanism, not encryption. Encoded data can be decoded back to its original representation.
Why does an ampersand sometimes need to be encoded?
An ampersand normally separates query parameters. If & is part of the actual value, encoding it as %26 prevents it from being interpreted as a parameter separator.
What is percent encoding?
Percent encoding is the mechanism used to represent characters using a percent sign followed by hexadecimal values. It is commonly called URL encoding even though the mechanism applies more broadly to URIs.

Explore more AabiTech tools

Browse the complete collection of practical online tools for development, text, design, calculations and everyday digital work.