Text & Code

URL Encoder / Decoder

Encode and decode URLs with percent-encoding. Parse URLs into components.

Your files stay on your device - processed locally via WebAssembly, never uploaded

Encoding Mode

🔒 All encoding and decoding happens in your browser. Nothing is sent anywhere.

Share this tool with othersHelp others discover free tools
Embed this tool on your website

Copy this code to add the URL Encoder / Decoder to your site for free. It runs entirely in your visitors' browsers - no API key, no usage limits.

<iframe src="https://optipix.art/embed/url-encoder" width="100%" height="600" style="border:1px solid #e4e4e7;border-radius:8px;" title="URL Encoder / Decoder by OptiPix" loading="lazy"></iframe>
<p style="font-size:12px">Free tool by <a href="https://optipix.art/url-encoder">OptiPix URL Encoder / Decoder</a></p>

❤️ Love this tool? Support our team.

No ads, no tracking, no limits. Tips keep 104 tools free for everyone.

$

Secure payment via Stripe · No account needed

About URL Encoder / Decoder

Last updated: May 2026

OptiPix URL 编码/解码器可在人类可读格式和百分比编码 URL 格式之间转换文本。使用 encodeURIComponent(默认)、encodeURI 或完全百分比编码模式。切换实时模式可实现键入时自动转换。内置的 URL 解析器可将任何 URL 分解为其组件--协议、主机、端口、路径、查询参数和片段--方便检查和调试 URL。一键复制编码或解码后的文本。非常适合处理查询字符串、API 集成和 URL 调试的 Web 开发人员。所有操作均在您的浏览器中进行--不会将任何数据发送到任何服务器。

How It Works

该工具使用 JavaScript 内置的 encodeURIComponent()、encodeURI() 和 decodeURIComponent() 函数进行标准编码/解码。URL 解析器使用 URL 构造函数将 URL 分解为 RFC 3986 组件。

Use Cases

  • 为 API 请求编码查询参数
  • 解码百分比编码的 URL 以进行调试
  • 解析复杂 URL 以检查单个组件
  • 准备文本以安全地包含在 URL 路径中
  • 调试包含特殊字符的 URL 查询字符串

You Might Also Like

If you find URL Encoder / Decoder useful, check out these related tools: HTML Entity Encoder / Decoder, Base64 Text Encoder / Decoder, and Hash Generator. All tools run entirely in your browser with no uploads or signups required.

Frequently Asked Questions

什么是 URL 编码?
URL 编码(百分比编码)用 % 后跟其十六进制值替换不安全字符。例如,空格变为 %20,和号变为 %26。
有哪些可用的编码模式?
三种模式:encodeURIComponent(编码除 A-Z、a-z、0-9 和一些安全字符外的所有字符)、encodeURI(保留 URL 结构字符,如 ://?#)和完全百分比编码(编码所有内容)。
我可以将 URL 解析为其组件吗?
是的。粘贴任何 URL,解析器都会将其分解为协议、主机、端口、路径、查询字符串、片段和各个查询参数。
我的数据会被发送到服务器吗?
不会。所有编码、解码和解析都在您的浏览器本地使用内置的 JavaScript 函数进行。
它能处理国际字符吗?
是的。编码器可以正确处理 Unicode 字符、表情符号和任何 UTF-8 文本,将它们编码为百分比编码的字节序列。

Related Tools

More Text & Code Tools

All 102 Tools

Image CompressorBackground RemoverVideo CompressorImage UpscalerOCR Text ExtractorFormat ConverterImage ResizerEXIF RemoverFace BlurDepth EstimationQR Code GeneratorWatermark MakerColor Palette ExtractorPhoto FiltersImage to PDFObject DetectionImage ClassifierImage CaptionerAI Image GeneratorMeme GeneratorGIF MakerPhoto Collage MakerImage CropPhoto EffectsImage to SVGColor ChangerNoise RemoverPhoto RestorationColor PickerFavicon GeneratorImage to Base64Image Metadata ViewerImage AnnotatorPassport Photo MakerDocument ScannerASCII Art GeneratorImage ComparisonSprite Sheet GeneratorObject RemoverPanorama MakerWord CounterCase ConverterLorem Ipsum GeneratorUUID GeneratorUnix Timestamp ConverterText DiffURL Encoder / DecoderHTML Entity Encoder / DecoderBase64 Text Encoder / DecoderText to Binary / Hex / OctalHash GeneratorJSON Formatter / ValidatorRandom String GeneratorCSV ↔ JSON ConverterMarkdown EditorUnit ConverterPercentage CalculatorBMI CalculatorAge CalculatorTip CalculatorCSS Gradient GeneratorCSS Box Shadow GeneratorCSS Border Radius GeneratorGlassmorphism GeneratorNeumorphism GeneratorCSS Text Shadow GeneratorFlexbox PlaygroundCSS Grid GeneratorAudio TrimmerAudio ConverterAudio MergerAudio RecorderVideo to Audio ExtractorAudio Speed ChangerAudio Volume BoosterRingtone MakerVocal RemoverText to SpeechSpeech to TextAudio Noise RemoverAudio EqualizerAudio EffectsVideo TrimmerVideo MergerVideo ResizerVideo Speed ChangerVideo RotatorVideo to MP4 ConverterAdd Music to VideoMute VideoVideo LooperReverse VideoVideo ScreenshotAdd Subtitles to VideoVideo WatermarkScreen RecorderWebcam RecorderSlideshow MakerVideo FiltersCron Expression BuilderRegex TesterUnix Timestamp Converter