Developer Tools
URL 編碼解碼工具

URL Encode and Decode

Convert URLs, query parameters or text to a safe format entirely in your browser.

⚡ 即時轉換
Enter the encoded URL
Paste the URL or string that needs to be decoded
0 / 10,000
轉換結果
The decoding results will be displayed here

URL 分析

自動解析 URL 的主要結構

Protocol-
Host-
Port-
Path-
Query-
Hash-

Query 參數

解析查詢字串中的 Key 與 Value

🗂️
尚無查詢參數
輸入 URL 後,查詢參數將顯示於此

常見編碼對照表

常見字元的 URL 百分比編碼

空白%20
+%2B
/%2F
?%3F
#%23
&%26
=%3D
:%3A
@%40
%%25

快速操作

快速對常見字元進行編碼

什麼是 URL 編碼與解碼?

URL Encode 是什麼?

URL Encode 會將空白、中文與特殊符號轉換成網址可安全傳輸的百分比格式,例如空白會變成 %20。

URL Decode 是什麼?

URL Decode 會把百分比格式還原成原始文字,例如 %E5%B7%A5%E5%85%B7 會還原為「工具」。

資料會上傳到伺服器嗎?

不會。本工具完全使用瀏覽器端 JavaScript 處理,輸入內容不會傳送到任何伺服器。

支援完整網址與一般文字嗎?

支援。你可以輸入完整 URL、Query String、中文、JSON 片段或一般文字內容。

隱私提示: 所有轉換均在你的瀏覽器本機完成,不會上傳任何內容。

URL Decode Online:免費線上 URL 編碼、解碼與網址解析工具

這是一款免費的線上 URL Decode / URL Encode 工具(url decode online),提供即時的網址編碼與解碼、Percent-Encoding(百分比編碼)轉換、Query String 查詢參數解析與 URL 結構分析。無論你要做 URL decode、URL encode、decode URL online、encode URL online、urldecode、urlencode,或處理中文網址、特殊符號、API 參數,都能在瀏覽器本機即時完成,不需要安裝軟體,也不會上傳任何資料。

什麼是 URL 編碼(Percent-Encoding)?

URL 編碼又稱百分比編碼(Percent-Encoding),是把網址中不安全或保留的字元(例如空白、中文、&、?、#、/、=、+)轉換成「%」加上十六進位碼的格式,例如空白會變成 %20、中文「工具」會變成 %E5%B7%A5%E5%85%B7。URL 解碼(URL Decode)則是相反的過程,把 %20、%E5%B7%A5 這類百分比編碼還原成人類可讀的原始文字。這在傳遞 Query String、UTM 追蹤參數、OAuth 回呼網址、REST API 請求時特別重要。

什麼時候需要 URL Decode / Encode?

  • 複製到的網址出現一堆 %20、%3A、%2F 亂碼,想還原成可讀文字(URL decode)。
  • 要把中文、空白或特殊符號放進網址或 Query String,避免連結被截斷(URL encode)。
  • 除錯 API 請求、Webhook 回呼、OAuth redirect_uri、UTM 行銷追蹤參數。
  • 解析網址結構:protocol、host、port、path、query、hash 一次看清楚。
  • 拆解查詢字串(query string)中的每一組 key / value 參數。

encodeURIComponent 與 encodeURI 有什麼差別?

encodeURI 會保留 : / ? # 等網址結構字元,適合對「整條完整網址」做編碼;encodeURIComponent 會連 : / ? # & = 一併編碼,適合對「單一參數值」做編碼。本工具的 URL Encode 採用 encodeURIComponent 邏輯,並額外處理 ' ( ) 等字元,讓每個參數值都能安全放進 Query String,避免跳脫不完全造成的解析錯誤。

即時轉換,零延遲

開啟「即時轉換」後,邊打字邊自動 encode / decode,貼上網址立刻看到結果,適合快速批次處理與除錯。

URL 結構與參數解析

自動拆解 protocol、host、port、path、query、hash,並把 Query String 中的每組 key / value 列成表格,一眼看懂網址組成。

100% 瀏覽器本機處理

所有編碼解碼都在你的裝置上用 JavaScript 完成,輸入內容不會上傳伺服器,安全處理機敏 token 與私密網址。

熱門相關關鍵字

url decode online url decode url encode url encoder url decoder decode url online encode url online urldecode urlencode percent encoding URL encoding URL decoding Online url decoding query string 解析 encodeURIComponent URL parser Chinese URL encoding %20 to blank
Copied