Developer Tools

URL Encode/Decode

Encode or decode URL and query string values.

Runs in your browser: nothing you enter is uploaded

Component encodes everything, best for a single query parameter value.

How it works

1

Enter your text or URL

Type or paste text to encode, or paste a percent-encoded URL you want to decode.

2

Pick a mode and action

Choose Component for a single query value or Full URL for a whole address, then Encode or Decode.

3

Copy the result

Copy the output, or send it back as input to chain encode and decode steps.

What URL encoding does

URLs can only contain a limited set of characters. Spaces, accented letters, emoji and symbols like &, ? and # have special meaning or are not allowed, so they must be written as a percent sign followed by a code. This is called percent-encoding or URL encoding. Decoding turns those codes back into readable text.

You need it when you put user text into a query string, build API requests by hand, share links that contain search terms, or read a long tracking link to see where it really goes.

Common encoded characters

CharacterEncodedNotes
Space%20 (or + in forms)The most common one
&%26Separates query parameters, must be encoded inside a value
?%3FStarts the query string
#%23Starts a page fragment
/%2FPath separator
@%40Used in emails inside URLs
é%C3%A9Non-English letters become UTF-8 bytes
😀%F0%9F%98%80Emoji use 4 bytes

encodeURIComponent vs encodeURI

In JavaScript, encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for a single value, like a search term inside ?q=. encodeURI leaves characters that build a URL (: / ? & = #) untouched, so use it only for a full address. Encoding a value with encodeURI is a common bug: an & inside the value then splits your parameter in two.

This tool uses component encoding by default, which is the safe choice for values. Double encoding (%2520 instead of %20) usually means a value was encoded twice; decode it twice to read it.

Example

Search for "pdf & word converter" becomes q=pdf%20%26%20word%20converter. Decoding https%3A%2F%2Fcraftora.dev%2Fmerge-pdf gives back https://craftora.dev/merge-pdf.

URL Encode/Decode features

  • Encode text and URLs so they are safe to use in links and query strings.
  • Decode percent-encoded URLs (like %20 and %2F) back to readable text.
  • Component mode for single query values, Full URL mode to keep : / ? # intact.
  • Send the output back to the input to chain conversions.
  • Runs entirely in your browser, so your data is never uploaded.
  • Completely free with no signup and no limits.

URL Encode/Decode FAQ

How do I URL encode text for free?

Type or paste your text, pick a mode, and click Encode. The URL-safe encoded result appears instantly. It is free, runs in your browser, and nothing is uploaded.

How do I decode a URL?

Paste the encoded URL into the input box and click Decode. Percent codes like %20 turn back into spaces and the original text is restored.

What is the difference between component and full URL mode?

Component mode encodes everything, which is right for a single query parameter value. Full URL mode leaves structural characters like : / ? # alone, which is right when encoding a complete web address.

What does %20 mean in a URL?

It is the encoded form of a space. URLs cannot contain raw spaces, so they are replaced with %20. Decoding turns them back into spaces.

Is my data safe?

Yes. Encoding and decoding run entirely in your browser on your own device. Your text is never sent to any server.

Do I need to sign up?

No. The URL encoder and decoder is free with no account and no limits.

Related Developer Tools

Recent from the blog