Text and dataRuns in your browser

URL Component Encoder & Decoder

Convert text to percent-encoded form for a query, path segment, or another URL component, and restore the original value.

  • UTF-8 text
  • Percent encoding
  • Runs locally
Online tool

Try the tool

Add your data, choose the settings, and get the result.

Input

Result

—

Processing in your browser

Text and selected files are processed in the current browser and are not sent to a server to produce the result.

Reviewed: 2026-07-17
01

How to use it

  1. 1

    Enter plain text or an encoded string.

  2. 2

    Choose encode or decode.

  3. 3

    Copy the transformed value.

02

What the tool can do

  • Encoding with encodeURIComponent.
  • Decoding with decodeURIComponent.
  • Unicode text support.
03

Common use cases

  • Preparing a query-parameter value.
  • Inspecting an encoded value from logs.
  • Representing spaces and special characters safely.
04

How it works inside

A space is encoded as %20, not as a plus sign.

The tool targets a URL component rather than a complete URL string.

05

Questions and answers

Should I encode the whole link or a single value?

Usually you encode a parameter value, such as search text. This tool processes the entire input as one component. If you paste a complete address, its structural characters will also be encoded.

Why does decoding show an error?

Check that the input contains valid %XX sequences and has not been truncated. Avoid decoding again unless needed, as that can change the result. The tool does not open decoded links.