Skip to content

URL encode and decode

Percent-encode text for safe use in URLs, decode encoded strings, and see any link broken down into its parts.

  • Runs in your browser
  • Nothing is sent
  • Works offline

Input

Output

Why URLs need encoding

URLs can only contain a limited set of characters. Spaces, accents and symbols like & or ? must be replaced with percent codes such as %20, or the link breaks or means something different.

Encoding a query value makes it safe to insert into a link, for example a search term containing &. Decoding turns an unreadable encoded link back into text you can read.

How to URL-encode text

  1. 01

    Choose a direction

    Encode turns spaces and symbols into codes like %20. Decode does the reverse.

  2. 02

    Pick what to encode

    Query value encodes everything that isn't safe in a parameter. Whole URL keeps characters like / and ? intact.

  3. 03

    Inspect the link

    Paste a full URL to see its host, path and every query parameter in a table.

Features

JSON formatter

Pretty-print, validate, sort and minify JSON, with the exact location of any error.

Base64

Encode and decode text and files, including URL-safe Base64 and data URLs.

URL encoding

Percent-encode and decode text, and break any URL into its parts and parameters.

JWT decoder

Read token headers and claims with readable issued and expiry times.

Instant

Results update as you type, with no buttons to press and no waiting for a server.

Private

Nothing you paste leaves your browser, so it's safe for API keys, logs and customer data.

Frequently asked questions

Is my data sent anywhere?

No. Everything runs in your browser, so API responses, tokens and config files never leave your device. It also works offline once the page has loaded.

When should I use Query value or Whole URL?

Use Query value for a single parameter, such as a search term, because it encodes &, = and /. Use Whole URL to clean up a complete link while keeping its structure.

Why does a + turn into a space when decoding?

In query strings, + traditionally means a space. Decoding follows that rule, which matches how browsers read form data.

More free tools