Developer Tool

URL Encode & Decode Online

Paste a URL or query string to encode special characters — or decode a percent-encoded string back to readable text. No install, instant.

AllOmnitools Editorial Team

Encoding Mode

Input

0 chars 0 bytes

About the Url Encoder

The URL Encoder converts special characters in URLs and text to URL-safe percent-encoded format. Use it to encode query strings, form data, or any text that needs to be safely transmitted in URLs. All encoding and decoding happens locally in your browser — your data never leaves your device.

Instant Results

Zero server lag. All encoding and decoding runs locally on your device for maximum speed.

100% Private

Your data never leaves your device. No uploads, no servers, no tracking.

What is URL Encoding and Why is it Necessary?

URL encoding, also known as percent-encoding, is a method of converting characters into a format that can be safely transmitted over the Internet. URLs were originally designed to support only a limited set of characters — the letters of the basic Latin alphabet, numerals, and a few special characters like hyphens, underscores, and tildes. However, modern web applications frequently need to transmit non-ASCII characters, spaces, and special symbols in query parameters, path segments, and fragment identifiers. URL encoding solves this problem by replacing each unsafe character with a "%" followed by two hexadecimal digits representing the character's ASCII value. For example, a space (ASCII 32) becomes "%20", and an ampersand (ASCII 38) becomes "%26". This ensures that URLs remain valid and interpretable across all browsers, servers, and network protocols.

Complete Developer Toolkit

URL encoding is a foundational step in building safe API calls and web requests. After encoding your query parameters, use our JSON formatter to validate the JSON body that often accompanies those encoded URL parameters in POST requests. Our Base64 encoder handles the next encoding layer when API credentials or binary data need to be embedded in the URL or Authorization header. For testing how your server handles those encoded URLs, our API response simulator mocks server responses so you can verify your encoding is correct without hitting a live endpoint.

Our HTML entity encoder is the equivalent tool for HTML contexts — when the same special characters appear in HTML attributes rather than URLs. Our JWT decoder is closely related since JWT tokens use Base64url encoding, a URL-safe variant of Base64 used in Authorization headers. The regex tester is useful for writing patterns that extract or validate URL segments and query parameters. Our diff checker helps compare encoded vs decoded strings side by side. For generating unique IDs to use as URL path segments, our UUID generator creates standards-compliant identifiers.

How to Use This Tool

  1. 1 Select your encoding mode: encodeURIComponent for query parameters or encodeURI for full URLs.
  2. 2 Enter the URL or text you want to encode in the Input field.
  3. 3 Choose whether spaces should encode as %20 (standard) or + (form encoding).
  4. 4 Press Encode or Decode. The result appears in the Output panel.
  5. 5 For URLs with query parameters, use the Query Parameters table below Output to edit or delete parameters.
  6. 6 Click Copy Result to save the result to your clipboard.

FAQ

Yes. Switch to Decode mode to convert encoded URLs back to plain text. This is useful when you receive an encoded URL and need to read or modify its components.