REST API Tester
Send HTTP requests (GET, POST, PUT, DELETE) directly from your browser. View response body, headers, status codes, and timing. Export as cURL.
Enter a URL and click Send Request
Supports GET, POST, PUT, PATCH, DELETE • Bearer Token & Basic Auth
How do I use REST API Tester?
Click 'Load Sample Data' or select an HTTP method (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`) and enter your endpoint URL.
Configure Query Params, Headers, JSON/Raw Body, or Bearer/Basic Auth in the request tabs.
Click 'Send' (and toggle 'CORS Proxy' in the right sidebar if testing an external API without browser CORS headers) to inspect status, latency, and formatted JSON.
What features does REST API Tester offer?
7 HTTP methods: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
JSON body editor with syntax validation
Bearer Token and Basic Auth support
Response with status code, timing, size, and headers
CORS Proxy mode for APIs blocking browser cross-origin requests
HTTP/1.1 & HTTP/2 Methods (RFC 9110), CORS Preflight & Status Codes
Browser-based HTTP requests use the Fetch API (`window.fetch`). Cross-origin requests with custom headers (like `Authorization`) or `application/json` bodies trigger an automatic `OPTIONS` preflight check.
| HTTP Method | Request Body | Idempotent? | Safe (Read-Only)? | Typical REST API Semantics |
|---|---|---|---|---|
| GET | No | Yes | Yes | Retrieve a resource or collection |
| POST | Yes (JSON/Form) | No | No | Create a new resource or trigger an action |
| PUT | Yes | Yes | No | Replace an entire resource deterministically |
| PATCH / DELETE | Yes (PATCH) / Optional | No (PATCH) / Yes (DELETE) | No | Partial update (PATCH) or remove resource (DELETE) |
Frequently Asked Questions about REST API Tester
Why does my request fail with `TypeError: Failed to fetch` in Direct Browser mode?
Browsers enforce the Same-Origin Policy and block JavaScript from reading responses unless the target server returns `Access-Control-Allow-Origin`. Switch Processing Mode to 'CORS Proxy' in the right sidebar to relay the request server-side.
Can I test `http://localhost:3000` or `127.0.0.1:8080` APIs from this tool?
Yes—use 'Direct (Browser)' mode when testing local `localhost` servers (with CORS enabled on your local dev server), because a cloud CORS proxy cannot reach your private loopback network.
How are Bearer Token and Basic Auth headers encoded?
Bearer mode injects `Authorization: Bearer <token>`, while Basic Auth Base64-encodes `username:password` (`btoa`) into `Authorization: Basic <base64>` per RFC 7617.
Why do `GET` and `HEAD` requests ignore the Body tab?
Per RFC 9110 and the WHATWG Fetch specification, `window.fetch()` throws a `TypeError` if a request body is attached to a `GET` or `HEAD` request. Pass filter parameters via the Query Params tab instead.
Explore Related Developer Tools
Mock Data Generator
Generate realistic fake data for testing: JSON, CSV, SQL, XML with 50+ field types — names, emails, UUIDs, dates, addresses. Runs 100% in your browser via Web Worker.
cURL to Python Requests Converter
Convert cURL commands with Bearer tokens, custom headers, and JSON payloads into clean Python requests code locally in your browser.
cURL to Go (net/http) Converter
Convert cURL commands into idiomatic Golang net/http code (http.NewRequest, strings.NewReader, req.Header.Set) in your browser.
Database ER Diagram Builder
Design database schemas visually with drag-and-drop or DBML code. Export PostgreSQL, MySQL, and SQLite DDL scripts and download PNG/SVG diagrams. No account needed.
JWT Decoder
Decode and inspect JSON Web Tokens. View header, payload, signature, and expiration status.
cURL to Code Converter
Convert cURL commands into JavaScript (Fetch, Axios), Python (requests, httpx), Go, Rust, and PHP code.