Simple online tools for developers, networking, text and conversions.

Developer Tools

URL Encoder

Encode text for safe use in URLs, query strings, parameters, redirects, and API requests.

Tool

Use this free URL Encoder to convert unsafe characters into percent-encoded text for URLs, query parameters, redirects, and request values. It is useful when preparing links, encoding spaces and symbols, building tracking URLs, debugging API calls, and making sure special characters are transmitted safely inside web addresses. Paste text or a full URL to encode it instantly in the browser.

About this tool

Use this free URL Encoder to convert unsafe characters into percent-encoded text for URLs, query parameters, redirects, and request values. It is useful when preparing links, encoding spaces and symbols, building tracking URLs, debugging API calls, and making sure special characters are transmitted safely inside web addresses. Paste text or a full URL to encode it instantly in the browser.

Use url encoder when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

When to use URL Encoder

URL Encoder vs related tools

URL Encoder vs URL Decoder

URL Encoder converts readable text into percent-encoded output. URL Decoder does the reverse and turns encoded text back into readable form. If you are starting with raw text, encode it. If you are starting with encoded text, decode it.

URL Encoder vs Base64 Encoder

URL Encoder is for making text safe inside URLs and query parameters. Base64 Encoder converts text into a different transport format and is not a substitute for normal URL escaping. If the destination expects a URL-safe value, URL encoding is usually the correct choice.

Helpful next steps

If you need to reverse an encoded result, use URL Decoder. If you want to inspect the structure of a full link, open URL Parser. If your encoded value contains JSON text, you may also want JSON Formatter.

Common mistakes when encoding URLs

Learn more

Why use this tool

How to use

  1. Paste the text, query value, or URL into the input box
  2. Click Run Tool to encode the input
  3. Review the percent-encoded output in the result area
  4. Copy the encoded value into your URL, parameter, redirect, or request
  5. If you need to reverse the result later, use the URL Decoder page

Examples

Example

Input

hello world

Output

hello%20world

Useful when spaces must be safe inside a URL or parameter value.

Example

Input

name=John & role=admin

Output

name%3DJohn%20%26%20role%3Dadmin

Helpful when building parameter values that contain equals signs, ampersands, or spaces.

Example

Input

https://example.com?a=1&b=2

Output

https%3A%2F%2Fexample.com%3Fa%3D1%26b%3D2

Useful when a URL itself needs to be passed as a parameter value.

Example

Input

https://example.com/login?next=/dashboard

Output

https%3A%2F%2Fexample.com%2Flogin%3Fnext%3D%2Fdashboard

Useful for redirect flows where one URL must be safely embedded inside another.

Example

Input

email=user@example.com?x=1&y=2

Output

email%3Duser%40example.com%3Fx%3D1%26y%3D2

Helpful for debugging how reserved characters are encoded before sending them.

Example

Input

Hello world

Output

%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82%20%D0%BC%D0%B8%D1%80

Useful when non-English text must be included in a link or parameter safely.

Example

Input

{"name":"John","role":"admin"}

Output

%7B%22name%22%3A%22John%22%2C%22role%22%3A%22admin%22%7D

Useful when sending structured text through a query parameter.

Example

Input

line one
line two

Output

line%20one%0Aline%20two

Helpful for checking how multiline text is represented after URL encoding.

Common errors

Encoding a full URL when only a query parameter value should be encoded

Fix: Decide whether you need to encode the whole string or just one parameter value before copying the result.

Using URL encoding instead of Base64 when an API expects Base64 data

Fix: Use Base64 tools only when the target system specifically expects Base64, not percent-encoded text.

Double-encoding a value that is already percent-encoded

Fix: Decode the value first or confirm whether it has already been encoded before running the tool again.

Assuming encoded slashes or punctuation should always stay readable

Fix: Reserved characters may be encoded depending on the context and how the value will be used.

Copying extra spaces or line breaks into the input

Fix: Trim the input first if exact encoded output matters.

FAQ

What does a URL encoder do?

A URL encoder converts unsafe or reserved characters into percent-encoded text so they can be used safely inside URLs and parameters.

When should I use URL encoding?

Use URL encoding when text contains spaces, symbols, Unicode characters, or reserved characters that must be transmitted safely in a URL.

What is the difference between URL Encoder and URL Decoder?

URL Encoder converts readable text into percent-encoded text, while URL Decoder turns encoded URL text back into readable form.

What is the difference between URL encoding and Base64 encoding?

URL encoding makes text safe for use inside URLs, while Base64 converts text into a different encoded format for data transport or storage.

Should I encode a full URL or only a parameter value?

That depends on the use case. Often only the parameter value should be encoded, but sometimes a full URL must be encoded when it is embedded inside another URL.

Why does my URL look over-encoded?

The most common reason is double-encoding, where a value that was already encoded gets encoded again.

Can I encode Unicode or non-English text?

Yes. URL encoding is useful for making international text safe inside query strings and other URL contexts.

Can I encode JSON with this tool?

Yes. If JSON text needs to be passed as a query value, it can be URL-encoded.

Why are spaces encoded as %20?

Spaces are not safe as raw characters in many URL contexts, so they are encoded into their percent-encoded representation.

When should I use URL Decoder after encoding?

Use URL Decoder when you want to reverse the encoded result or verify that the encoded value round-trips correctly.

Use cases

Related tools