NEWFree Developer Tool

URL Master
Encoder & Decoder

URL encode any string or URL decode any percent-encoded text in seconds. URL Master runs entirely in your browser — no server, no uploads, no account needed.
Ad

URL Encoding Headaches, Solved

These are the URL encoding and URL decoding problems developers and marketers run into every day.

Broken links from spaces and special chars

Unencoded spaces and symbols like &, ?, # in query parameters silently break URL routing. You must URL encode every special character to keep your links valid and safe.

encodeURI vs encodeURIComponent confusion

JavaScript's two URL encode functions behave differently. encodeURI URL encodes a full address while preserving structural characters like ://, whereas encodeURIComponent URL encodes everything — choosing wrong corrupts or breaks the link.

Online tools that upload your sensitive data

Tokens, API keys, and private query parameters embedded in URLs are sensitive. Most online URL encoders and URL decoders send your data to a server — URL Master never does.

URL Master

Local only — never uploaded

URL encode or URL decode any string here — all processing stays in your browser.

Encoding mode:
Output

Why Developers Use URL Master

Every feature in URL Master is built for real encoding and decoding workflows — fast, private, and flexible.

Bidirectional URL encode & URL decode

URL Master handles both directions: URL encode raw text into a valid percent-encoded string, or URL decode a garbled link back to readable form — instantly.

Real-time preview

Toggle real-time mode and URL Master shows your encoded result as you type — no button press needed. Equally useful when you URL decode a long query string and need to inspect the output character by character.

Local history (last 5)

URL Master saves your last 5 URL encode and URL decode operations in localStorage. Refresh the page without losing your work — click any record to restore the full session instantly.

One-click swap & reuse

Move the decoded output back to the input in one click. Chain URL encode → edit → encode again — no copy-pasting between fields.

encodeURI vs encodeURIComponent

Switch between encodeURI (preserves :// and /) and encodeURIComponent (encodes all special characters) to match your exact use case every time.

100% local — zero uploads

URL Master runs every URL encode and URL decode operation entirely in your browser. API tokens and private strings never touch a server. Works fully offline too.

Three Ways to Use URL Master

From URL encode workflows to URL decode debugging — URL Master covers every scenario.

URL Encode Precisely with Two Modes

Use encodeURI to URL encode a full address while keeping its structure — slashes, colons, and query delimiters stay intact. Switch to encodeURIComponent for a single parameter value containing &, =, or Chinese characters. URL Master makes switching between modes instant.

URL Master split panel showing raw URL with Chinese characters on left and percent-encoded output on right, with encodeURI vs encodeURIComponent toggle

Never Lose a URL Encode or URL Decode

URL Master stores your last 5 URL encode and URL decode operations in your browser's localStorage. Even after a page refresh or browser restart, every previous result is still there. Click any history entry to restore its input, output, and encoding mode — no re-typing required.

URL Master history panel listing recent encode and decode operations with timestamps and restore functionality

Private, Local-Only Processing

Every URL encode and URL decode operation in URL Master runs entirely inside your browser — no network request is ever made. API tokens, OAuth parameters, and private query strings stay on your device. Disconnect your internet and URL Master still works without interruption.

URL Master browser interface with shield icon and local-only badge indicating no server connection

How to Use URL Master

URL encode or URL decode any string in three steps — no setup, no account.

01

Pick your URL encode mode

Choose encodeURI if you're encoding a whole address and want to preserve its structure. Choose encodeURIComponent for individual parameter values that need all special characters escaped. Toggle real-time on to preview your URL encode result instantly as you type.

  • Not sure which to use? Start with encodeURIComponent — it's the safer encoding option for individual parameter values.
02

Paste your input or load a sample

Type or paste any URL, raw text, or percent-encoded string into the input box. Click 'Load Sample' to prefill a URL with Chinese characters and spaces — great for testing both encoding modes side by side.

  • URL Master automatically suggests URL Decode when it detects % sequences in your input.
03

URL Encode, URL Decode, copy, or swap

Click URL Encode or URL Decode to convert. Copy the result to your clipboard in one click. Use Swap to move the output back to the input for another round — and every conversion is saved to history automatically.

  • Use Swap after URL decode to quickly re-encode a modified version of the result.

URL Master FAQ

Answers to the most common URL encoding and decoding questions.

What is URL encoding (percent-encoding)?

URL encoding, also called percent-encoding, converts characters not allowed in URLs into a safe format: each character is replaced by a % sign followed by its two-digit hexadecimal value. For example, a space becomes %20 and a Chinese character like 你 becomes %E4%BD%A0. URL Master lets you URL encode or URL decode any string instantly — no code required.

What is the difference between encodeURI and encodeURIComponent?

encodeURI (a URL encode for full addresses) leaves structural characters like :, /, ?, &, and = untouched so the URL stays valid. encodeURIComponent escapes everything except letters, digits, and - _ . ! ~ * ' ( ) — including &, =, and / — making a value safe to embed as a query parameter. URL Master lets you switch between both modes with a single click.

Why does URL decode fail with an error in URL Master?

URL decode fails when the input contains a bare % not followed by two valid hexadecimal digits. For example, '100%off' contains %of, which is not valid hex. URL Master shows a clear error message in this case so you can identify and fix the problem in your input quickly.

Is my data private when I use URL Master?

Yes. URL Master runs every URL encode and URL decode operation entirely in your browser — no input ever leaves your device. There is no server-side component, no logging, and no account required. You can disconnect your internet and URL Master will still work normally.

What does the local history feature store?

URL Master saves your last 5 URL encode and URL decode operations in your browser's localStorage. Each record stores the input, output, mode (encode or decode), encoding type (encodeURI or encodeURIComponent), and a timestamp. The data never leaves your device.

How do I URL decode a URL containing %2F or %3A?

Paste the percent-encoded string into URL Master and click URL Decode. %2F becomes / and %3A becomes :, so https%3A%2F%2Fexample.com is restored to https://example.com. URL Master uses decodeURIComponent internally, so every percent-encoded sequence — including those that encodeURI would leave untouched — is fully URL decoded.

URL Encode or URL Decode in Seconds

No sign-up. No server. Open URL Master, paste your string, and get your URL encode or URL decode result instantly — free forever.

URL Master is free and runs every URL encode and URL decode operation locally in your browser.