Encoding

How to URL Encode Text

Convert special characters in your URLs to safe percent encoded format using the DevHexLab URL Encoder.

Tool Used

URL Encode

Open tool
1

Open the URL Encoder

Navigate to /tools/encoding/url-encode in your browser.

2

Paste your text or URL

Paste the text or URL you want to encode into the input box. This can be a query parameter, a path segment, or any string containing spaces, accents, ampersands, or symbols that are not safe in a URL.

3

Choose component or full URL mode

Component mode is best for encoding values that go inside a query string. It encodes everything including reserved characters like &, =, ?, and /. Full URL mode preserves the URL structure and leaves characters like /, :, ?, and & untouched because they are part of the URL syntax. Use component for values, full URL for entire addresses.

4

Copy the encoded output

Click Copy to grab the URL safe string. Spaces become %20, accented letters become percent sequences like %C3%A9, and symbols become their hex equivalents.

5

Paste it where it is needed

Use the encoded text in API requests, HTML href attributes, query strings, or anywhere a URL must be safe for browsers and servers to parse correctly.

All done!

You are ready to use URL Encode like a pro.

Try it now
All guides