Everyday · FREE ONLINE TOOL

URL Encode / Decode

Percent-encode or decode a UTF-8 URL component locally, keeping component encoding distinct from encrypting or validating a full URL.

Your inputs

Formula and input guidance

URL component text

Percent-encode a UTF-8 URI component, or reverse that encoding.

Text is processed locally. Encoding is not encryption; do not treat encoded data as secret.

Calculations run in your browser. No account needed.

EXAMPLE RESULTCalculated locally
Result
Hello%2C%20Finflo!
Clear inputs. Transparent methods.
My workspace

How it works

Illustration for URL Encode / Decode: a chain link; a globe and padlock.
URL component textPercent-encode a UTF-8 URI component, or reverse that encoding.
A useful distinction

Recognize a double-encoded space

A space encodes as %20; encoding that output again produces %2520 because the percent sign is encoded too. Decoding once returns %20, not a space. Check which encoding layer the receiving application expects before transforming again.

Follow a space through two encoding passes

Output. A (1) → %20. B (2) → %2520.
Follow a space through two encoding passes
Encoding passCalculationOutput
A 1U+0020 → %20%20
B 2%20 → %25 + 20%2520

Encode a URL component, not an entire address indiscriminately

Percent encoding represents bytes using % followed by two hexadecimal digits. This tool treats the input as one UTF-8 URI component. A query value containing an ampersand can therefore be encoded without accidentally turning that ampersand into a query separator.

An entire URL also contains structural delimiters such as :, /, ? and &. Encoding all of them as one component can change how the URL is interpreted. Identify the component you want to encode first.

Worked example: preserve a literal plus and a space

The component a+b c encodes as a%2Bb%20c. The plus becomes %2B and the space becomes %20. Decoding that result returns the original text, including the distinction between plus and space.

UTF-8 component examples
Input textEncoded component
a+b ca%2Bb%20c
fish & chipsfish%20%26%20chips
100%100%25
é%C3%A9

Do not confuse percent decoding with form decoding

This tool’s component decoder leaves a literal + as a plus. Some application/x-www-form-urlencoded parsers interpret + as a space; that is an additional format rule. A query string copied from a form therefore needs interpretation in the context of its encoding.

For a literal plus intended to survive form-style parsing, its encoded representation is %2B. The surrounding application determines how a query parameter is ultimately decoded.

Watch for accidental double encoding

Encoding %20 again produces %2520 because the percent sign is itself encoded as %25. Decoding one layer returns %20, not a space. Repeatedly decoding unknown input until it “looks right” can change its meaning.

Keep track of which layer is already encoded and encode raw component text once for the destination format. Malformed percent sequences or invalid UTF-8 are rejected rather than guessed.

Encoding does not make an address or its content trustworthy

Percent encoding is a representation change. It does not encrypt a secret, verify a destination or remove the need to handle untrusted text safely in the receiving application. Encoded delimiters still have meaning when decoded.

Use Base64 only when a format specifically calls for it; it is a different byte-to-text representation and is not a substitute for URI-component encoding.

URL component text: formula and assumptions

Percent-encode a UTF-8 URI component, or reverse that encoding.

Text is processed locally. Encoding is not encryption; do not treat encoded data as secret.

Use URL component text

Worked example

Using the URL component text example:

Inputs
Operation
Encode
Text
Hello, Finflo!
Method

Percent-encode a UTF-8 URI component, or reverse that encoding.

Result

Example result

Result: Hello%2C%20Finflo!

These are illustrative inputs. Change the values to explore a different scenario.

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

Why is a space shown as %20 instead of +?

The tool uses URI-component encoding. The plus-as-space convention belongs to specific form-encoding rules.

Why does a plus remain a plus when decoded?

The component decoder does not apply form-style plus replacement. %2B decodes to a literal plus.

Can I paste a full URL into Encode?

You can encode it as text, but structural delimiters will also be encoded. Usually encode the individual component you intend to insert.

What does %2520 mean?

It is an encoded percent sign followed by 20. One decoding pass gives %20, which can indicate a second encoding layer.

Does URL encoding hide passwords?

No. Percent encoding is easily reversible and is not encryption.

Why is my input rejected?

A percent sequence may be incomplete, contain invalid hexadecimal digits or represent invalid UTF-8 for this decoder.

See our methodology and editorial policy.