URL Encoder and Decoder

URL Encoder and Decoder

Use URL Encoder and Decoder

All GotoKit tools run directly online, no download required.

Ready
JavaScript
// encodeURI - keep URL structure
encodeURI('https://a.com?q=hello world')
// => "https://a.com?q=hello%20world"

// encodeURIComponent - encode all
encodeURIComponent('hello & world')
// => "hello%20%26%20world"

// decode
decodeURIComponent('hello%20world')
Python
from urllib.parse import quote, unquote
# encodeURIComponent
quote('hello world', safe='')
# encodeURI
quote('https://a.com', safe='/:?=&')
# decode
unquote('hello%20world')
Java
import java.net.URLEncoder;
import java.net.URLDecoder;
// encode (+ for space)
URLEncoder.encode("hello world","UTF-8")
// decode
URLDecoder.decode("hello+world","UTF-8")
CharEncodedNote
space%20Space
!%21
"%22
#%23
$%24
%%25
&%26
'%27
(%28
)%29
*%2A
+%2B
,%2C
/%2F
:%3A
;%3B
=%3D
?%3F
@%40
[%5B
]%5D
%7B
%7D
中文%E4%B8%AD%E6%96%87UTF-8

Remove UTM / fbclid / gclid / ...

Batch: one URL per line
History
Empty

About this tool

Perfect for debugging API parameters, cleaning tracking links, handling non-ASCII URLs. Batch encode/decode, dual modes, one-click tracker removal, built-in character reference. All processing is local—zero data upload.

  • 100% free with no usage limits
  • No sign-up or login required
  • Runs right in your browser
  • Privacy-friendly and fast to use

Docs

URL Encoder & Decoder is a pure frontend online tool for URL encoding (percent-encoding) and decoding. It supports batch processing, encodeURI / encodeURIComponent dual modes, space handling (%20 / +), and smart encoding detection. All computation happens locally in your browser — no data is uploaded, making it ideal for URLs containing sensitive business information.

Core Features

  • Bidirectional: Encode and decode URLs.
  • Batch mode: One item per line, results with line numbers.
  • Dual encoding modes: encodeURI (preserves URL structure chars) and encodeURIComponent (encodes all special chars).
  • Space handling: Choose %20 or +.
  • Auto-detect: Automatically identifies whether input is encoded or plain text.
  • One-click copy: Copy results instantly.
  • Tracking parameter removal: Strip UTM, fbclid, and other marketing tracking params from URLs.
  • History: Automatically saves your last 20 conversions.
  • Character reference: Built-in table of common percent-encoded characters.
  • Code examples: Ready-to-use code snippets for JavaScript, Python, and Java.
  • Fully local: No server dependency, protecting data privacy.

How to Use

  1. Paste text to encode or decode in the input box (batch: one per line).
  2. Select mode: Encode or Decode.
  3. Choose encoding type: encodeURI or encodeURIComponent.
  4. Select space handling: %20 or +.
  5. Results appear instantly in the output box on the right.
  6. Copy results or use the Swap button to reverse input and output.

encodeURI vs encodeURIComponent

  • encodeURI: Preserves URL structure characters (:/?#[]@!$&'()*+,;=), suitable for full URLs.
  • encodeURIComponent: Encodes all special characters, suitable for URL parameter values.

Typical Use Cases

  • Debugging API request parameter encoding.
  • Cleaning promotional links with tracking parameters for SEO.
  • Handling URLs containing non-ASCII or special characters.
  • Verifying consistent parameter encoding during frontend-backend integration.

Notes

  • Ensure input is valid percent-encoded text when decoding.
  • Each line is processed independently in batch mode.
  • URL cleaning requires complete URLs for the browser URL API.

Last verified: 2026-07-26

FAQ

Is it free?

Yes, completely free. No signup, no limits on usage.

Will data be uploaded?

No. All encoding/decoding runs locally in your browser. No data ever leaves your computer.

encodeURI vs encodeURIComponent?

encodeURI preserves URL structure characters (:/?#[]@!$&'()*+,;=), for full URLs. encodeURIComponent encodes all special characters, for parameter values.

Batch processing?

Yes. One item per line, results annotated with line numbers for easy cross-referencing.

How to remove tracking params?

Switch to the "Remove Trackers" tab, paste URLs, click "Clean URLs" — automatically removes utm_source, fbclid, gclid, etc.

More from Developer

All Developer tools

Secure Password Generator

Generate strong random passwords locally with length controls, character set options, exclusions, and instant strength feedback.

Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384, SHA-512, and HMAC hashes from text or files entirely in your browser.

MD5 Generator and Checker

Generate MD5 hashes, compare two MD5 results, and create random passwords with instant MD5 output in one simple browser tool.

JSON Formatter and Validator

Format, validate, repair, search, and inspect JSON in a cleaner editor built for developers, APIs, and configuration files.

YAML and JSON Converter

Convert YAML and JSON both ways with validation, copy, download, and clearer error feedback for config and API work.

XML Formatter, Minifier & Validator

Format, minify and validate XML online. Pretty-print with configurable indent, sort attributes, collapse empty elements. All client-side, zero data upload.

Robots.txt Generator

Free online robots.txt generator with crawler presets, visual Allow/Disallow rules, sitemap support, live validation, and one-click download. Runs locally.

XML Sitemap Generator

Free online XML sitemap generator. Paste a URL list to build a standard sitemap.xml with lastmod/changefreq/priority batch settings, URL dedupe and validation, CSV/TSV/existing-sitemap import, and automatic sitemapindex splitting over 50,000 URLs. Runs fully in your browser.

Regex Tester

Test regular expressions in real time with live matches, highlighting, explanations, and reusable test cases.

Cron Expression Generator & Parser - Build Schedule Expressions

Free online cron expression generator and parser. Build schedule expressions visually with instant human-readable descriptions and next run time preview.

Browse all categories