# Conversor de cURL a fetch

> Convierte opciones admitidas de comandos en solicitudes JavaScript editables.

[Open tool](https://www.toolcabana.com/es/curl-to-fetch-converter) · [Utilidades para desarrolladores](https://www.toolcabana.com/es/category/developer-utilities)

Tool ID: curl-to-fetch-converter. Requested language: es. Description language: es. Complete guide translation: yes.

## Overview (en)

The cURL to fetch converter turns a cURL command into JavaScript code that calls fetch with the same URL, method, headers and body, then reads the response as text. It understands -X, -H, -d, --data-raw, --data-binary and --url, and ignores -L, --compressed and -s. It only generates code and never sends the request.

## Supported tasks (es)

Convierte opciones admitidas de comandos en solicitudes JavaScript editables.

## Steps (es)

1. Pega la fuente en el editor de entrada o carga el ejemplo integrado.
2. Comprueba el formato de origen antes de ejecutar la operación.
3. Ejecuta el conversor de cURL a fetch, revisa la salida y usa los controles disponibles para copiar o descargar.

## Settings

No additional settings.

## Limitations (es)

Las entradas CSV/XLSX están limitadas a 10 MB cada una, 200 columnas y 20,000 filas; la salida combinada está limitada a 20,000 filas. La evaluación de scripts/filtros JSONPath está desactivada. Otras operaciones aplican sus controles visibles y límites de texto.

## Example input

```text
curl 'https://example.com/api' -X POST -H 'Content-Type: application/json' --data '{"hello":"world"}'
```

## Privacy and connections (es)

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

## Questions (es)

### Which cURL options are supported?

Supported options are -X or --request, -H or --header, -d, --data, --data-raw, --data-binary and --url. The flags -L, --location, --compressed, -s and --silent are accepted and ignored. Any other option returns an Unsupported cURL option error naming the flag.

### What HTTP method is used when the command has a body?

If the command sends data with -d or a --data variant and no method is set, the converter switches the method from GET to POST, as cURL does. An explicit -X value is kept as written.

### Why is my cURL command rejected?

Commands must start with curl, contain one http or https URL and use balanced quotes. Shell substitution with backticks or $( ) is refused, and bodies read from a file with @filename are not supported. Paste the literal body instead.

### ¿Dónde se procesa mi entrada?

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

### ¿Cuáles son los límites de entrada?

Las entradas CSV/XLSX están limitadas a 10 MB cada una, 200 columnas y 20,000 filas; la salida combinada está limitada a 20,000 filas. La evaluación de scripts/filtros JSONPath está desactivada. Otras operaciones aplican sus controles visibles y límites de texto.

## Related tools

- [JSONPath explorer](https://www.toolcabana.com/es/jsonpath-explorer)
- [JSON to Zod schema generator](https://www.toolcabana.com/es/json-to-zod-schema-generator)
- [Unix permissions calculator](https://www.toolcabana.com/es/unix-permissions-calculator)
- [Semver range tester](https://www.toolcabana.com/es/semver-range-tester)
