OneDevTools
All Tools31
  • Formatter & Validator
  • Minifier
  • Base64 Encoder/Decoder
  • URL Encoder/Decoder
  • Case Converter
  • Word Counter
  • Lorem Ipsum
  • UUID Generator
  • Hash Generator
  • Tailwind Theme Generator
  • Unix Timestamp
  • Number Base
  • Password Generator
  • CSS Minifier
  • Code to Image
  • Merge PDF
  • Split PDF
  • Images to PDF
  • PDF to Images
  • Rotate PDF
  • PDF Metadata
  • CSV to JSON
  • JSON to CSV
  • CSV to SQL
  • CSV to Markdown Table
  • CSV Duplicate Remover
  • CSV Column Splitter
  • CSV Email Validator
  • CSV Prompt Runner
  • CSV Translator
  • CSV Bulk Content Generator
Home31 tools
  1. Home
  2. Encoding
  3. URL Encoder

URL Encoder / Decoder

Encode or decode URLs and query string parameters using percent-encoding (RFC 3986).

What is URL Encoding?

URL encoding (also known as percent-encoding) converts characters that are not allowed in URLs into a format that can be transmitted over the internet. Special characters are replaced with a percent sign (%) followed by two hexadecimal digits representing the character's ASCII code. For example, a space becomes %20.

How to Use

  1. 1.Choose Encode to convert a URL/text to percent-encoded format, or Decode to reverse it.
  2. 2.Paste your URL or query string into the left box.
  3. 3.The result appears instantly in the right box.
  4. 4.Use Swap to flip input and output.

Common Use Cases

Query String Parameters

Encoding search queries and filter values in API request URLs.

Form Data Submission

HTML forms encode data as application/x-www-form-urlencoded before sending.

Bookmark & Share URLs

Safely encode URLs with special characters for sharing in emails or messages.

API Development

Building REST API clients that pass complex data in URL parameters.

FAQ

What's the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL (preserving :, /, ?, #, etc.) while encodeURIComponent encodes a URL component (parameter value), encoding those characters too. This tool uses encodeURIComponent.

Why is space encoded as %20 or +?

In query strings, spaces can be represented as either %20 (standard percent-encoding) or + (form encoding). This tool uses %20 (encodeURIComponent standard).

Is this tool safe to use with passwords?

Yes — all processing happens in your browser. Nothing is sent to our servers.

Related Tools

Base64 Encoder/DecoderJSON FormatterHash Generator