ツールを探す

↑↓ 選択 Enter 開く

名前が不明な場合は作業内容で検索できます。

cURL → Code

ローカル処理

cURL → Code はブラウザ上でデータやファイルを変換するツールで、結果と制限を明確に示します。 このページには、実際の入出力例、実装上の制限、一次資料が含まれます。

確認済み · 更新日 · 無料 · アカウント不要

Input
Output
Processing stays in this tab. Engines load from this site when you run the tool.

cURL → Code は何をしますか?

cURL → Code はブラウザ上でデータやファイルを変換するツールで、結果と制限を明確に示します。 検証済みの機能: JavaScript Fetch output, Python Requests output, Visible conversion warnings, Self-hosted browser parser WASM.

When should you use this tool?

Use this tool to start a client implementation from a cURL example. Use URL Encoder to inspect query components and JSON Formatter to inspect request bodies. Test generated code only in the intended runtime after reviewing warnings.

使い方

  1. Paste a cURL command or open a local .txt or .sh file.
  2. Select JavaScript Fetch or Python Requests and choose Run.
  3. Review warnings, credentials, headers, and body handling before copying or downloading the generated code.

実際の入出力例

Convert a basic GET request to Fetch

入力

curl 'https://example.com/api' -H 'Accept: application/json'

出力

fetch('https://example.com/api', {
    headers: {
        'Accept': 'application/json'
    }
});

The converter writes source text. No request to example.com is sent, and the generated code is not executed.

一般的なエラーと対処

症状原因対処
A command cannot be parsed.The input is not supported cURL shell syntax or has unbalanced quotes.Paste a complete cURL command and check quotes; PowerShell and CMD syntax may need conversion to Bash-style syntax.
Generated Fetch code behaves differently from cURL.Browser CORS, restricted headers, credentials, and unsupported cURL flags do not have identical semantics.Review visible warnings and adjust the code for its actual runtime; formatting success is not an HTTP execution test.

Supported behavior and limitations

このツール固有の制限: This tool does not bypass CORS, execute commands, access referenced files, verify endpoints, or guarantee semantic equivalence. Shell substitutions may become placeholders or target-language expressions and require review. Tokens remain visible in the generated code; copying or downloading preserves them. Input is capped at 64 KiB.

標準と実装の参考資料

cURL → Code — FAQ

Is my input uploaded?

No. Processing happens in a browser Worker. Engine files load from this website; tool input, output, and filenames are not sent to a processing API.

Do I need an account or API key?

No account, API key, or backend processing service is needed.

How do I save a result?

Review the result, then use the Copy or Download control available for that output. Modifying input clears stale results.

What are the limits?

This tool does not bypass CORS, execute commands, access referenced files, verify endpoints, or guarantee semantic equivalence. Shell substitutions may become placeholders or target-language expressions and require review. Tokens remain visible in the generated code; copying or downloading preserves them. Input is capped at 64 KiB.

更新内容

実質的な更新: cURL → Code: Added local processing, explicit size limits, cancellation, worked examples, error explanations, and downloadable results.

このツールの管理者

KL
KitLumi EngineeringKitLumi Engineering が動作、テスト、例、プライバシー説明を管理します。