Web Toolbox

URL encoder and decoder

Runs in your browser – nothing is uploaded.

Percent-encode text so it is safe to put in a URL query string or path segment, or decode an encoded value back into plain text.

Encoding uses the same rules as JavaScript’s encodeURIComponent, so characters such as spaces, &, = and / are escaped.

Example

Mode: Encode

Input

name=Jane Doe & co

Output

name%3DJane%20Doe%20%26%20co

Frequently asked questions

Are spaces encoded as %20 or +?

Spaces become %20. When decoding, a + is left as a + rather than turned into a space, because + only means a space in HTML form encoding.

Which characters are left unchanged?

Letters, digits and the characters - _ . ! ~ * ' ( ) are not encoded.