
Writing a load test script from scratch is the boring part. You already have the request you want to hammer: it is sitting in your browser’s network tab, in a Postman collection, or described in an OpenAPI spec. So why retype it as a k6 script or build a JMeter test plan by hand?
Now you do not have to. LoadFocus converts a cURL command, a HAR file, a Postman collection or an OpenAPI spec into a runnable k6 script or JMeter .jmx test plan. It works two ways: as free public tools you can use without an account, and built right into the New Test page so you can import, configure the load, and run in the cloud in one go.
Is Your Infrastructure Ready for Global Traffic Spikes?
Unexpected load surges can disrupt your services. With LoadFocus’s cutting-edge Load Testing solutions, simulate real-world traffic from multiple global locations in a single test. Our advanced engine dynamically upscales and downscales virtual users in real time, delivering comprehensive reports that empower you to identify and resolve performance bottlenecks before they affect your users.
What you can import
- cURL: paste any
curlcommand, including the “Copy as cURL” you grab from your browser’s network tab. - HAR: an HTTP Archive exported from your browser’s dev tools. Static assets like images, CSS and fonts are filtered out automatically so the test focuses on real API calls.
- Postman: a collection exported as JSON. Collection variables are resolved where possible.
- OpenAPI: an OpenAPI or Swagger spec. Request bodies are generated from the schema when no example is provided.
Option 1: the free converters
No signup, nothing installed, all conversion happens in your browser. Pick your source and your target:
- To k6: cURL to k6, HAR to k6, Postman to k6, OpenAPI to k6
- To JMeter: cURL to JMeter, HAR to JMeter, Postman to JMeter, OpenAPI to JMeter
Or start from the converters hub. Copy the generated script, download it, or move straight into a cloud run.
Option 2: import inside LoadFocus and run in the cloud
On the New k6 Test or New JMeter Test page, expand the Import from cURL, HAR, Postman or OpenAPI panel. Paste your request or upload a file, click Import, and the generated script is attached to your test. Set your virtual users, duration and regions, then run it in the cloud.
Think your website can handle a traffic spike?
Fair enough, but why leave it to chance? Uncover your website’s true limits with LoadFocus’s cloud-based Load Testing for Web Apps, Websites, and APIs. Avoid the risk of costly downtimes and missed opportunities—find out before your users do!

You can preview the generated script right there, and copy or download it if you want to refine it further.
Auth headers, handled
Real requests carry Authorization, Cookie or API-key headers. LoadFocus detects them and, by default, keeps their values in the generated script so the test authenticates on the first run. Prefer to keep secrets out of the script? Turn off “Include detected auth values” and they become placeholders (__ENV variables for k6, User Defined Variables for JMeter) that you fill in yourself.
A quick example
Paste a cURL command like this:
curl -X POST 'https://api.example.com/v1/login' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer your-token' \
--data '{"email":"user@example.com","plan":"pro"}'and you get a ready-to-run k6 script:
LoadFocus is an all-in-one Cloud Testing Platform for Websites and APIs for Load Testing, Apache JMeter Load Testing, Page Speed Monitoring and API Monitoring!
import http from 'k6/http';
import { check, group, sleep } from 'k6';
export const options = {
vus: 10,
duration: '30s',
thresholds: { http_req_failed: ['rate<0.01'], http_req_duration: ['p(95)<1000'] },
};
export default function () {
group('POST https://api.example.com/v1/login', () => {
const res = http.post('https://api.example.com/v1/login',
'{"email":"user@example.com","plan":"pro"}',
{ headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer your-token' } });
check(res, { 'status is 2xx': (r) => r.status >= 200 && r.status < 300 });
});
sleep(1);
}Pick JMeter instead and you get a validated .jmx test plan built from the same request.
Try it
Grab a cURL command or a Postman collection you already have and convert it: loadfocus.com/load-testing-converters. Want to run it against real cloud load? Start free with LoadFocus.
More detail in the docs: Import to k6 and Import to JMeter.