Cubestack

URL Encoder / Decoder

Free URL encoder & decoder online — encode and decode URLs and query strings, and see every parameter in a link.

Encodes everything except letters, digits and - _ . ! ~ * ' ( ) — use it for a single query value such as a search term.

Input
Result

What is the URL Encoder / Decoder?

URL encoding (percent-encoding) replaces characters that aren't allowed in URLs — spaces, &, ?, non-English letters — with codes like %20. Cubestack encodes and decodes using the same functions browsers use.

How to use it

  1. 1

    Pick a mode

    Choose Encode or Decode.

  2. 2

    Paste text

    Enter a URL, parameter value or encoded string.

  3. 3

    Copy

    Copy the converted output.

Features

  • Encode and decode

    Convert in either direction instantly.

  • Component or full URL

    See encodeURIComponent output plus encodeURI, which keeps : / ? # & = intact.

  • Unicode support

    Handles non-Latin characters and emoji.

  • One-click copy

    Copy the result straight to your clipboard.

Popular uses

  • Query parameters

    Safely put search terms and redirect URLs into links.

  • Debug links

    Decode messy tracking URLs to read them.

  • APIs

    Prepare values for GET requests and form posts.

Frequently asked questions

encodeURI vs encodeURIComponent?

encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ' ( ) — use it for parameter values. encodeURI keeps URL structure characters like / ? & = so it suits full URLs.

Why is a space %20 and sometimes +?

%20 is standard percent-encoding. + means a space only in HTML form encoding (application/x-www-form-urlencoded).

What if decoding fails?

An invalid sequence such as a lone % shows an error — check the string was encoded correctly.

Related tools