WebToolset Logo
WebToolset
All Categories
Categories
Developer & Data formatters
Formatters
XML FormatterJSON FormatterSQL FormatterYAML Formatter
Converters
JSON to CSVCSV to JSONCurl to Code
Minifiers & Validators
HTML MinifierCSS MinifierJS Minifier
Security, Crypto & Encoding
Generators
Hash GeneratorsBcrypt GeneratorPassword GeneratorUUID/GUID Generator
Encoder/Decoder
HTML Entity EncoderURL Encode/DecodeJWT DecoderBase64 ToolBase64URL ToolHex ToolBase32 ToolBase58 ToolBase36 ToolBase62 ToolAscii85 ToolBase91 ToolBase45 ToolUuencoding ToolHMAC GeneratorULID GeneratorEncrypt / Decrypt
QR Tools
QR Code GeneratorQR Code Reader
String & Text Manipulation
Word & Character CounterLorem Ipsum GeneratorModern Text Diff CheckerCase ConverterRemove Duplicate LinesString ReverserSlug GeneratorASCII Art GeneratorMarkdown to HTMLText Replacement ToolDetect Unicode Char
Image Tools
Image CompressorImage ResizerImage CropperPNG to JPG ConverterJPG to PNG ConverterWebP ConverterBase64 Image EncoderSVG to PNG ConverterColor PickerHEX to RGB Converter
Math, Time & Network
Unix Timestamp ConverterPercentage CalculatorAspect Ratio CalculatorUnit ConverterNumber Base ConverterIP Address LookupUser Agent ParserSubnet CalculatorStopwatch & TimerCron Job GeneratorAdvanced Calculator
© 2025 WebToolset
Home
Security, Crypto & Encoding
URL Encode/Decode
Logo
Security, Crypto & Encoding/URL Encoder

URL Encoder

Encode text for safe use in URLs. Decode percent-encoded URLs. Handle special characters, query parameters, and UTM tags.

What is URL Encoder?

A URL Encoder (or Percent Encoder) is a tool that converts characters into a format that can be transmitted over the Internet. URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain characters outside the ASCII set, the URL must be converted into a valid ASCII format. URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits. For example, a space becomes %20. This tool allows you to encode any string for use in a URL query parameter or path, and decode it back to its original form.

Input Formats

  • Full URLs
  • Query string parameters
  • Text with special characters

Output Results

  • Percent-encoded string
  • Decoded plain text
  • Copy-ready result

Key Features

Safe Transmission: Ensure URLs work across all browsers and servers
Query Param Ready: Encode complex JSON or text for GET requests
Bidirectional: Encode and Decode instantly with one click
Privacy: 100% Client-side processing; no data leaves your browser
Standard Compliant: Uses RFC 3986 percent-encoding standards
Error Prevention: Fixes broken links caused by spaces or special chars
Developer Friendly: Essential for debugging API calls and UTM tags
Best & Modern: The best modern URL encoder for safe link sharing
Shareable LinksShare encoded/decoded URL strings. (Limit: 5KB)

Who is this for?

API Development

Developers encoding JSON payloads or filters to pass them safely in URL query parameters.

Query stringAPI paramsGET requestPercent encoding

Digital Marketing

Marketers fixing broken UTM tracking links caused by unencoded spaces or special characters.

UTM tagsTracking linkCampaign URLBroken link

Data Transmission

Sending complex data (like email addresses or foreign characters) via URL without breaking the link.

International charactersUTF-8 URLSafe link

How to Use

1

Paste your text or URL component into the input area.

2

Select 'Encode' to convert special characters to %XX format.

3

Select 'Decode' to convert back to readable text.

4

Copy the result.

Examples

Input

Hello World!

Output

Hello%20World%21

Common Errors

  • Encoding the entire URL (including https://) instead of just parameters
  • Double encoding (%2520 instead of %20)
  • Confusing + and %20 for spaces

Code Examples

JavaScript

const encoded = encodeURIComponent('Hello World!');
const decoded = decodeURIComponent(encoded);

Python

import urllib.parse
encoded = urllib.parse.quote('Hello World!')
decoded = urllib.parse.unquote(encoded)

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?
encodeURI is for full URLs (it keeps http://). encodeURIComponent is for parts (like query values) and encodes everything, including slashes.
Why do spaces become %20 or +?
%20 is the standard for URLs. '+' is sometimes used in form data. I use %20 because it works everywhere.
Can I encode emojis?
Yes! I convert emojis into their UTF-8 code and then percent-encode them so they work safely in any browser address bar.
Is it reversible?
Absolutely. If you encode something, you can always decode it back to the exact original text.