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

—

Your data stays here

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

Can I paste a complete URL?

Yes, but the whole string will be encoded as one component. Usually only the intended value should be encoded.

How is this different from Base64?

URL encoding escapes characters for URLs, while Base64 represents bytes with a text alphabet.