14
Data & developer

URL Encoder & Decoder

Encodes text as a URL component with encodeURIComponent or decodes it. It is safest to work on a single parameter value rather than a complete URL.

✓ Free✓ No account✓ In-browser
QUICK ANSWER

What does this tool do?

Convert query values into safe URL components.

Input never leaves this page.Ctrl/⌘ + Enter
ResultReady
Your result will appear here.
Operation statusReady
✓ Runs entirely in your browser
NEXT STEP

Process this result with another tool

URL Encoder & Decoder output stays briefly in this tab. Continue with JSON Formatter & Validator, or build a longer visual flow.

APPLICATION AND DECISION GUIDE

URL Encoder & Decoder: method and usage

Encodes text as a URL component with encodeURIComponent or decodes it. It is safest to work on a single parameter value rather than a complete URL.

How does the tool actually work?

Encoding uses encodeURIComponent and decoding uses decodeURIComponent; the tool does not visit the address.

Input check before you begin

Enter one URI component or parameter value to encode, or percent-encoded text to decode. Confirm the shape first with a small example containing no personal data.

How should you interpret the output?

The result is a component with reserved characters escaped as percent sequences, or text decoded once.

Practical steps

  1. Enter a URL component.
  2. Choose encode or decode.
  3. Verify the result before using it in a real link.
Verification

a+b & page=1 must become a%2Bb%20%26%20page%3D1. Decoding must preserve the original plus sign.

Stop condition before using the result

Encoding a whole address also escapes its colon and slashes. The form-decoding rule plus → space does not apply here.

Suitable use cases

  • Preparing query parameters
  • Inspecting broken links
  • Decoding redirect values
FROM INPUT TO RESULT

URL: distinguish a value from a whole address

This sample is one parameter value. The plus becomes %2B, spaces become %20, and the ampersand becomes %26, preventing it from starting an unintended parameter. Encoding an entire https address also escapes its colon and slashes, so the result is no longer a directly navigable address. Encode the value when building a URL and verify how the destination decodes it.

Sample input
a+b & page=1
Expected output
a%2Bb%20%26%20page%3D1

Input that should fail

%E0%A4%A

The incomplete percent sequence %E0%A4%A must fail. Also, decodeURIComponent("a+b") returns a+b; it does not automatically turn a plus into a space. Confusing form decoding with URI-component decoding can change a search query. Encoding the result twice escapes the percent characters again, so pass a value encoded exactly once to the receiving system.

ABOUT THIS TOOL

Frequently asked questions

What input does URL Encoder & Decoder accept?+

Enter one URI component or parameter value to encode, or percent-encoded text to decode. Enter a URL component.

What does URL Encoder & Decoder return?+

The result is a component with reserved characters escaped as percent sequences, or text decoded once. Encoding uses encodeURIComponent and decoding uses decodeURIComponent; the tool does not visit the address.

How should I validate URL Encoder & Decoder output?+

a+b & page=1 must become a%2Bb%20%26%20page%3D1. Decoding must preserve the original plus sign.

Does URL Encoder & Decoder send or store input on a server?+

Tool input is processed in the active tab. Saving to the Workstation or transferring to another tool is a separate choice. Consider browser extensions and shared devices separately; the privacy page explains advertising and network connections.