URL 编码器 / 解码器 — Uttir
Skip to main content

URL 编码器 / 解码器

对 URL 和查询字符串进行编码或解码,以便在 HTML、HTTP 和电子邮件中安全使用。免费、在浏览器中运行,无需上传。

URL 编码器 / 解码器 — URLs may only contain a limited set of characters. Spaces, ampersands, question marks, and non-ASCII characters must be percent-encoded — replaced with %XX sequences. This tool offers two modes: component mode encodes everything reserved (for a single query parameter value), while full-URL mode keeps structural characters like : / ? & = so an entire address stays readable.

Encoding runs locally in your browser. Nothing is uploaded.

Was URL 编码器 / 解码器 useful?

URL 编码器 / 解码器是什么?

URLs may only contain a limited set of characters. Spaces, ampersands, question marks, and non-ASCII characters must be percent-encoded — replaced with %XX sequences. This tool offers two modes: component mode encodes everything reserved (for a single query parameter value), while full-URL mode keeps structural characters like : / ? & = so an entire address stays readable.

It matches the behavior of encodeURIComponent and encodeURI in JavaScript, so results are identical to what your code produces.

使用方法

  1. Pick a mode

    Component for a parameter value; full URL for an entire address.

  2. Paste your text

    The encoded output updates as you type.

  3. Copy the result

    Use Copy to place the encoded string on your clipboard.

示例

Query value

Reserved characters are encoded in component mode.

a b&c=d

结果: a%20b%26c%3Dd

Full URL

Structure is preserved; only unsafe characters are encoded.

https://example.com/search?q=café & more

结果: https://example.com/search?q=caf%C3%A9%20&%20more

常见问题

相关指南

相关工具

Last reviewed: 2026-11-21