URL Encoder / Decoder

URL Encoder / Decoder
Encode or decode URLs, query strings, and URI components — instantly, in your browser
0 chars
Result
Input Length
0
Output Length
0
Chars Encoded
0
Method
encodeURIComponent
Character Reference
CharacterEncoded
space%20 (or + in Form mode)
&%26
=%3D
?%3F
/%2F (preserved in Full URI)
#%23

Frequently Asked Questions

What is URL encoding?

URL encoding (percent-encoding) converts characters that aren’t allowed in a URL into a “%” followed by two hexadecimal digits representing the character’s byte value, so the string can be safely transmitted as part of a URL.

What’s the difference between Component, Full URI, and Form encoding?

Component (encodeURIComponent) encodes almost everything except unreserved characters — use it for individual query values. Full URI (encodeURI) preserves URL structure characters like / and ? — use it for a complete URL. Form encoding is like Component but converts spaces to “+” instead of “%20”, matching application/x-www-form-urlencoded.

Is my data sent to a server?

No. All encoding and decoding happens entirely in your browser using JavaScript — nothing is uploaded anywhere.

Why does decoding sometimes fail?

Decoding fails if the input contains a malformed percent sequence (e.g. a stray “%” not followed by two valid hex digits). Check that your encoded text wasn’t truncated or manually edited.