Text utilities

URL Encoder and Decoder

Encode a URL component or decode percent-encoded UTF-8 text locally.

Text stays in your browserCopy your result
Data workspace
Data workspace

Check delimiters and structure before downloading the output.

See the method

Your source data

Runs on your device

Your transformed data

Your result

Let’s calculate.

Use the Calculate button to see your result.

Your content is processed locally.

How to use this tool

  1. Enter text or encoded component, mode.
  2. Select Update result to view the result.
  3. Check the method and assumptions below before using the result.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
Text or encoded componentKeep the structure and separators shown in the sample. Line breaks are retained in this input.hello world & more
ModeChoose Encode component / Decode component.Encode component

Result for these sample inputs

hello%20world%20%26%20more

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

The method, explained

Encoding uses encodeURIComponent to escape a component. Decoding uses decodeURIComponent to interpret percent-encoded bytes as text.

A WORKED EXAMPLE

The component “hello world” encodes as “hello%20world”. The ampersand encodes as %26.

What to keep in mind

This encodes a component, not an entire URL while preserving its separators. Plus signs are not automatically converted to spaces during decoding.

Common questions

Can I paste a complete URL?

You can, but component encoding will also escape its slashes and separators. That is useful only when embedding the whole URL as a value.

Does encoding encrypt the text?

No. Anyone can reverse percent encoding; it provides no secrecy.

Methodology maintained by ClarityKit. How these tools are built and checked.