URL 编解码

URL 组件或完整 URI 编解码

正在加载工具…

关于 URL 编解码

URL 组件或完整 URI 编解码

Encoding the wrong part of a URL can change its meaning. A query value, path segment, fragment, and complete URI have different boundaries, so choose the mode that matches where the value will be inserted.

如何使用这个开发者工具

  1. Choose component mode or complete-URI mode.
  2. Paste the value and decide whether you are encoding or decoding it.
  3. Review reserved characters such as ?, &, /, +, and # before copying the result into your application.

隐私与数据处理

URL values are processed locally in the browser. The tool does not request the destination URL, so it cannot tell you whether a link is reachable or safe to open.

相关开发者工具

常见问题

Why should I encode a query parameter separately?

Encoding a parameter value separately preserves the separators used by the complete URL and prevents user data from changing the query structure.

What does a plus sign mean?

Its meaning depends on the context. Form encoding often treats plus as a space, while general URI processing can treat it as a literal plus.

Does decoding a URL make it safe?

No. Decoding only changes its representation. Validate the destination and treat untrusted URLs as potentially unsafe.