ENCODING

URL Encoder

Safely encode text for a URL parameter, one component at a time.

YOUR WORKSPACE
INPUT
Your input stays in this tab · Up to 500,000 characters

A little clarity, coming right up.

Your result will appear here.
A clean result. No extra steps.
Processed here. Never uploaded.
Tip: Ctrl + Enter or ⌘ + Enter to run.
THE QUICK START

One less thing on your list.

  1. 01

    Paste a parameter value or path component.

  2. 02

    Encode reserved characters using percent encoding.

  3. 03

    Use the result as a component in your URL.

A LITTLE CONTEXT

About this tool

Use encodeURIComponent to percent-encode a single URL component. Spaces become %20 and characters such as ampersands are escaped.

This encodes a component, not a complete URL. Pasting a whole URL will also encode its separators, including slashes and question marks.

GOOD TO KNOW

A couple of useful answers.

Why does a space become %20?+

Percent encoding represents a space byte as %20. Some HTML form encodings use a plus sign instead.

Should I encode an entire URL?+

Usually you should encode individual parameter values, keeping URL separators intact.

This tool runs in your browser. Your input is not uploaded or saved by Saanvi.

Privacy details