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

Developer Tools

URL Encoder Examples

Review practical URL Encoder examples so you can understand expected input, output, and common patterns faster.

Why examples matter for URL Encoder

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.

Example pages are especially useful for developer tools because they show what good input looks like, what kind of output to expect, and how the tool behaves in common scenarios.

URL Encoder examples

Encode spaces in plain text

Input

hello world

Output

hello%20world

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

Encode special characters in a query value

Input

name=John & role=admin

Output

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

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

Encode a full URL string as data

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.

Encode a redirect target

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.

Encode symbols and punctuation

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.

Encode Unicode text

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.

Encode JSON as a parameter value

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.

Encode text with line breaks

Input

line one
line two

Output

line%20one%0Aline%20two

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

How to use these examples

  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

Common mistakes in sample input

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.

Next steps

After reviewing these examples, run the live tool with your own input. If your task involves a follow-up step, the related page can help you move to the next tool in the workflow.

Run the main tool

Open the main URL Encoder page and test your own real input.

Open URL Encoder