Home / Tools / URL Encoder / Decoder

URL Encoder / Decoder

Turn text with spaces, symbols and non-English characters into a URL-safe string — or take a percent-encoded URL apart and read it plainly.

Runs 100% in your browser No upload — files never leave your device Free · No sign-up
1Paste your text
2Set your options
3Get your results

See it in action

coffee & croissants? → coffee%20%26%20croissants%3F %E4%B8%AD%E6%96%87 → 中文

For query strings, API calls and reading other people's tracking links. Made with this tool.

Limits

Honest limits: This encodes a full component (like a query value), so characters such as / ? & = are encoded too — right for parameter values, wrong for encoding a whole URL you want to keep navigable. Decoding a string with a stray % that is not an escape will throw an error.

How to use it

1Paste or type your text

Put the text you want to work on into the input box. It stays in this tab — nothing is sent anywhere.

2Choose encode or decode

Encode when putting text into a link, a query string or an API call. Decode when a log or an address bar hands you %20s and %E4s and you want to read them.

3Run it

Click the run button and the result appears in the output box below, ready to copy or save.

4Copy or download

Copy the result with one click, or download it as a plain text file for later.

About this tool

URLs speak a restricted alphabet, and everything else — spaces, ampersands, Chinese characters, emoji — travels as percent-escapes. Anyone who has debugged a broken link, built a query string, or wondered what a tracking URL actually says has needed this translation in both directions. This tool uses the standard encodeURIComponent rules, handles Unicode properly, and runs locally — handy when the URL you are dissecting contains tokens or private parameters you should not paste into a stranger's website.

Everything runs locally in your browser. Your text is processed with JavaScript in this tab only — it is never uploaded, logged or stored, so you can safely use it on drafts, client copy, code snippets and data you would not paste into a stranger's server. There is no sign-up, no daily limit and no paywall counter ticking down: run it as many times as you need, on any device.

Frequently asked questions

What is the difference between encoding a component and a full URL?

A component (one query value) must escape everything structural — &, =, ?, / — because those characters have jobs in a URL. A full URL keeps its structure and escapes only the unsafe characters inside its parts. This tool does the component kind; for a whole URL, encode just the part after the ? or the segment that contains your text.

Why did decoding fail with an error?

The input contains a % that is not followed by two hex digits, or a truncated multi-byte sequence — common when an encoded URL was cut off while copying. Copy the complete string and it decodes cleanly.

Is this tool free to use?

Yes — free, with no sign-up and no daily limit. Your text is processed in your browser, so there is no server cost and nothing to meter.

Is my text sent to a server?

No. Everything happens with JavaScript inside this browser tab. Your text is never uploaded, logged or stored — paste drafts, client copy or data freely.

How much text can I paste?

Plenty — everyday documents, articles and data files are fine. Extremely large pastes (many megabytes) depend on your device's memory, and the browser may slow down while it works.

Does it work on my phone?

Yes, in any modern mobile browser. For very long texts a bigger screen is more comfortable, but the processing itself works the same everywhere.

Related tools

Want more free tools?

Free tools that all run locally in your browser — no uploads, no fees.

Browse all tools