URL Encoder / Decoder

Encode or decode URLs and query parameters instantly

無料登録不要オフライン対応プライバシー優先
0 URLs
0 Encodes
0 Decodes
Result will appear here...
Result will appear here...
Your encoded/decoded URL
will be displayed here.
编码输入的URL

Example URLs

Click on any example to load it into the input field, or use "Quick Run" to automatically convert:

Query Parameters

name=John Doe&email=john@example.com&message=Hello World!

URL with Special Chars

https://example.com/search?q=hello world&category=开发工具

API Endpoint

https://api.example.com/users?filter=name='test'&sort=desc

What is URL Encoding?

What is URL Encoding?URL encoding, also known as percent-encoding, is a mechanism for encoding information in a Uniform Resource Identifier (URI). It converts special characters into a format that can be transmitted over the Internet. Our free online URL encoder/decoder helps you convert URLs and query parameters instantly without any installation or signup.

Technical Implementation

JavaScript Functions

/* Encode URL components */
encodeURIComponent(input)
/* Decode URL components */
decodeURIComponent(input)

Algorithm Details

  • Converts characters to UTF-8 bytes
  • Each byte becomes %XX (hexadecimal)
  • Reserved characters are encoded
  • Unreserved characters remain unchanged

Key Features

URL Encode

Convert special characters to percent-encoding

URL Decode

Restore encoded URLs to readable format

Syntax Highlighting

Color-coded output for easy reading

100% Private

All processing happens in your browser

Common Use Cases

  • Encoding query parameters for API requests
  • Converting non-ASCII characters in URLs
  • Handling special characters like spaces and ampersands
  • Debugging encoded URLs in web development
  • Preparing data for form submissions

!Usage Boundaries & Limitations

Appropriate For:
  • Query parameters and form data
  • API requests and web services
  • URL parameters with special characters
  • Multilingual content in URLs
⚠️ Not Suitable For:
  • Complete URL structure encoding
  • Domain names or protocols
  • Already encoded content (double encoding)
  • HTML entity encoding

実際のシナリオ

1APIクエリ文字列の構築

あなたはECサイトの検索機能を構築しており、ユーザー入力からURLクエリパラメータを作成する必要があります。

問題のあるURL:
https://shop.com/search?query=men's shoes & category=athletic
正しくエンコードされたURL:
https://shop.com/search?query=men%27s%20shoes%20%26%20category%3Dathletic

解決策: URLエンコーディングを使用して、スペース、アポストロフ、アンパサンドを適切に処理します。

2国際文字のサポート

あなたのWebアプリは、中国語、日本語、またはその他のUnicode文字を含むユーザー検索を処理する必要があります。

元の検索語:
开发ツール + 在线服务
URLエンコード後:
%E5%BC%80%E5%8F%91%E3%83%84%E3%83%BC%E3%83%AB%20%2B%20%E5%9C%A8%E7%BA%BF%E6%9C%8D%E5%8A%A1

解決策: Unicode文字をエンコードして、URLで正しく送信されるようにします。

3ソーシャルメディア共有

動的なコンテンツを含むソーシャルメディア投稿用の共有リンクを作成します。

動的な共有URL:
https://app.com/share?title=Check this out!&text=Amazing article about web development
ソーシャルメディア対応:
https://app.com/share?title=Check%20this%20out%21&text=Amazing%20article%20about%20web%20development

解決策: URLの破損を防ぐためにパラメータをエンコードし、ソーシャルメディアとの適切な統合を確保します。

URLエンコーディングの使用方法

1

URLまたはテキストを入力

上部の入力フィールドにURLを貼り付けるか、エンコード/デコードが必要なテキストを入力してください。

2

エンコードまたはデコードを選択

'エンコード'を選択すると特殊文字が変換され、'デコード'を選択するとエンコードされたURLが読み取り可能な形式に戻されます。

3

変換をクリック

変換ボタンをクリックすると、出力フィールドにエンコードまたはデコードされた結果が即座に表示されます。

4

コピーして使用

結果をコピーして、ウェブアプリケーション、API呼び出しまたはドキュメントで使用してください。

よくある質問

URLエンコードとは何ですか?

URLエンコードは、Internetを介して送信できるフォーマットに文字を変換します。特殊文字は「%」に続いて2桁の16進数で置き換えられます。

いつURLエンコードを使用する必要がありますか?

URLにスペース、アンパサンド(&)、中文や日文などの非ASCII文字が含まれている場合は、URLエンコードを使用してください。

私のデータは安全ですか?

はい、すべてのエンコードとデコードはブラウザ内で完全に発生します。データはサーバーに送信されません。

関連ツールとガイド

開発ワークフローを向上させるための他のツールとガイドを発見

Drag me to the logo!Collection: 0/8 items