Online HTTP request converter.
Convert raw HTTP requests into executable client code. Paste a request on the left and get a ready-to-run snippet on the right.
Try it here: https://alfredosalzillo.me/http-to/
- Live conversion as you type
- Syntax highlighting with CodeMirror
- One-click copy button
- Error feedback for invalid HTTP input
- Persistent last conversion (stored locally in your browser)
- JavaScript
fetch
Roadmap: more targets (e.g., Dart
http, Node libraries, curl) — contributions welcome!
- Next.js (App Router)
- React 19
- Material UI (MUI)
- CodeMirror 6
- TypeScript
- Biome (lint/format)
- Install dependencies:
npm install
- Run the dev server:
Then open http://localhost:3000
npm run dev
- Build for production:
npm run build
- Start the production server:
npm start
app/— Next.js App Router pages and layoutcomponents/— UI components (e.g., converter, copy button)plugins/— CodeMirror language definitions and HTTP convertershooks/— Reusable hooks (e.g., localStorage state)lib/— Shared utilities (reserved)
Issues and pull requests are welcome. If you plan a larger change (like adding a new converter), please open an issue first to discuss scope and approach.