就绪输入或选择输入以开始。
在您的浏览器中本地处理对于此工具,所选输入将在浏览器中处理。并非为了核心操作而故意上传到Get Tools Lab。
开发者工具

URL 编码器/解码器

快速回答该工具对 URL 组件进行编码或解码。将其用于查询参数值和其他组件,而不是盲目地编码完整的 URL。
工作原理

URL编码/解码的使用方法

  1. 1粘贴或输入您的内容。
  2. 2选择所需的操作。
  3. 3查看输出。
  4. 4复制或下载结果。

About URL 编码/解码

Encode or decode URL components. Use it when you need the result without the overhead of opening a larger application. For anything important, compare the output with your source and keep the original until you are satisfied with the result.

Editorial note

Encode the value, not blindly the entire URL

Percent-encoding is meant to keep data characters from being mistaken for URL syntax. A query value containing spaces or & needs encoding; the structural ?, = and & around it usually do not.

Double-encoding is a common bug. If % becomes %25 repeatedly, inspect whether an already encoded value was passed through the encoder again.

A realistic example

Encode “red & blue” as a query parameter value before inserting it into the URL, then decode once to confirm the original value returns.

When this tool is not the right fit

Do not repeatedly decode untrusted URLs without understanding how the application will use the result.

快速回答

这个工具的作用

URL 编码将字符转换为百分比编码形式,以便在 URL 组件中安全使用;解码会反转该表示。

常见用例

  • 对查询值进行编码
  • 检查编码的 URL
  • 准备重定向参数
  • 调试网络请求

限制

  • 对完整 URL 进行编码和对一个查询参数进行编码是不同的操作。
隐私和处理

在您的浏览器中本地处理

对于此工具,所选输入将在浏览器中处理。并非为了核心操作而故意上传到Get Tools Lab。

审阅者Get Tools Lab 编辑和工程团队最后更新
示例和测试用例

结果示例

你好世界

你好%20world

a%2Fb

a/b

故障排除

如果结果看起来不正确

  • 避免重复解码,除非您知道该值已被多次编码。
验证记录

Last tested: 2026-09-03

V50 deterministic render, static JS/control audit and responsive layout checks

  • ✓ PHP page renders without a fatal/parse error
  • ✓ Primary controls and labels are present
  • ✓ Invalid or missing input has a recoverable error path
  • ✓ Responsive layout checked at 390px and 1365px in V50 local QA
  • ✓ Keyboard focus and status region are available

阅读测试方法

信任、方法和更正

Get Tools Lab 记录了如何设计、审查和纠正工具。除非有明确记录,否则我们不会要求外部认证。

Questions people ask

Answers about URL 编码/解码

What is URL 编码/解码 useful for?

对 URL 组件进行编码或解码。

Can I use URL 编码/解码 with production data?

Use a small, non-sensitive sample first and verify the output against the format or application that will consume it. A formatter or converter can validate structure, but it cannot know every rule in your application.

What is a common reason to use URL 编码/解码?

A common use is to finish the url encoder/decoder task quickly without opening a larger desktop application.

What should I watch out for when using URL 编码/解码?

Check the input format and review the output before replacing an original file or using the result in an important workflow.

How do I get a better result with URL 编码/解码?

开始 with a clean input, use the simplest settings that meet your goal, and compare the result with the original before you download or reuse it.

了解更多

相关指南

查看所有指南 →
此设备上不公开

最近下载

来自Get Tools Lab的下载将出现在这里。