FreeImagesTools
FreeImagesTools

URL Encoder / Decoder

Encode text for safe use in a URL, or decode a percent-encoded string back to plain text. Everything runs in your browser.

What is a URL Encoder and Decoder?

A URL encoder converts characters in text or URLs into a percent-encoded format. This is useful when a URL contains spaces, special characters, or other values that need to be represented in an encoded form.

A URL decoder performs the reverse operation by converting percent-encoded sequences back into their corresponding characters. This makes encoded URLs and query values easier to read and work with.

How to encode or decode a URL

  1. 1

    Enter your URL or text

    Paste the URL, query string, or text that you want to encode or decode.

  2. 2

    Choose encode or decode

    Use URL encoding to convert characters into percent-encoded form, or decoding to turn encoded values back into readable text.

  3. 3

    Review the result

    Check the converted URL or text and make sure the result is what you expect.

  4. 4

    Copy the result

    Copy the encoded or decoded value and use it wherever you need it.

How URL encoding works

URL encoding, also called percent encoding, represents certain characters using a percent sign followed by hexadecimal digits. For example, a space is commonly represented as %20.

This allows characters that need special handling to be represented in a URL-compatible form without manually replacing them yourself.

URL encoding vs. URL decoding

Encoding and decoding are opposite operations. When you encode text, characters are converted into their percent-encoded representations. When you decode that value, those encoded sequences are converted back into characters.

  • Encode: converts text into URL-encoded form.
  • Decode: converts percent-encoded text back into readable characters.

When to use a URL encoder

URL encoding is commonly useful when working with query parameters, URLs containing spaces or special characters, web development, API requests, and text that needs to be placed inside a URL.

Encoding the appropriate value can help ensure that characters are represented correctly when they are included in a URL.

When to use a URL decoder

A URL decoder is useful when you encounter an encoded URL or query value and need to understand the text it represents. Decoding can make percent-encoded values easier to inspect, troubleshoot, or reuse.

URL encoding is not encryption

URL encoding changes the representation of text; it does not secure or encrypt it. Someone who understands URL encoding can decode the value back into its original representation. Do not use URL encoding as a method of protecting passwords, secrets, or other sensitive information.

Encode and decode URLs privately in your browser

The conversion happens directly in your browser, so you can work with URLs and text without sending the input to a remote server. This makes the tool convenient for quick URL encoding and decoding during development or everyday web work.

Frequently asked questions

Yes, completely free with no signup or usage limit.

Related tools

Or browse the full list of free tools.