Encoding & Decoding

URL Encoder and Decoder

Percent-encode or decode text with encodeURIComponent or encodeURI. Useful for query values, non-ASCII paths, and API debugging. All processing stays in the browser.

URLEncodingDecoding

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Build query parameters that include non-ASCII or special characters
  • Restore percent-encoded API URL fields
  • Compare encodeURI and encodeURIComponent behavior

How to use

  1. Paste or enter the text to process
  2. Choose encode or decode and pick the encoding function
  3. Copy the output

Example input and output

Text

你好

encodeURIComponent

%E4%BD%A0%E5%A5%BD

FAQ

What is the difference between encodeURIComponent and encodeURI?

encodeURIComponent encodes more reserved characters (such as &, =, and ?), so it fits single parameter values. encodeURI keeps URL structure characters and fits encoding a full URL.

How is this different from a URL parser?

This tool percent-encodes or decodes a string. A URL parser splits a full URL into scheme, host, path, and query parts.

Tools

Related tools

Continue with another translated tool for a nearby task.

Base64 Encode/Decode

Base64 Encoder and Decoder

Available

Encode and decode Base64 in the browser, with standard and URL-safe variants, automatic direction detection, and optional file-to-Base64 conversion. Useful for API debugging and local data prep.

Base64 Encoding Developer

URL Parser

URL Parser and Query Parameter Splitter

Available

Parse a URL into protocol, host, port, path, query, and hash fields, and list each query parameter name and value. Useful for debugging API URLs and share links.

URL Parser Developer

URL Builder

URL Builder — Assemble and Parse Query Parameters

Available

Build URLs from protocol, host, port, path, hash, and query parameters with automatic value escaping, or parse a full URL back into fields. Handy for API debugging and campaign link setup. Processing stays in the browser.

URL Query Builder