%%
Last Updated: [[2021-02-08]]
%%
Source URL: https://k6.io/blog/announcing-jmeter-to-k6-js-converter-tool
# Announcing: JMeter to K6 JS Converter Tool
[Readwise URL](https://readwise.io/bookreview/7621111) | [Source URL](https://k6.io/blog/announcing-jmeter-to-k6-js-converter-tool)
---

---
major thanks to @bookmoons for doing an amazing job implementing this tool ^143086930
**References:** https://instapaper.com/read/1385504694/15446694
---
npm install -g jmeter-to-k6 ^143086931
**References:** https://instapaper.com/read/1385504694/15446704
---
we recommend to use nvm to avoid permission issues with trying to use sudo on Unix/Linux system ^143086932
**Note:** I did have this issue and would stress this point - go through nvm.
**References:** https://instapaper.com/read/1385504694/15446720
---
If you prefer to install it on a per-project basis, as a dependency, you can of course do that as well (run something like npm install --save-dev jmeter-to-k6 instead). ^143086933
**References:** https://instapaper.com/read/1385504694/15446722
---
jmeter-to-k6 -o /conversion/output/directory MyTest.jmx ^143086934
**References:** https://instapaper.com/read/1385504694/15446724
---
> Will it work on all JMeter files?
> The short answer is no.
^143086935
**References:** https://instapaper.com/read/1385504694/15446727
---
This will only be a summary of the features that the converter is able to convert (and the equivalent k6 options or JS code), to see the full details of its support go here. ^143086936
**References:** https://instapaper.com/read/1385504694/15446772
---
> I'll close off by sharing the next steps we'd like to take with the converter:
> \
> Multi-scenario support: In JMeter you can have several different thread groups with independent ramping configurations. This is something we're working on adding in k6 as well. Once it's implemented in k6 we'll expand the converter to support this in a cleaner 1-to-1 way than what is currently implemented.
> \
> Arrival-rate support: Once arrival-rate execution support lands in k6 we'll add support in the converter to convert Arrivals Thread Group and Free-form Arrivals Thread Group.
> \
> Popular thread groups: In this initial release we're missing support for the Ultimate Thread Group and Concurrency Thread Group.
> \
> More logic controllers: There are some logic controllers that we left out of this initial release that we plan to add in a future release. They include:
> \
> Include Controller & Module Controller to convert modularized JMeter test plans Random Order Controller Switch Controller Throughput Controller
> \
> XPath assertions and extraction: As k6 currently doesn't support XML parsing nor XPath querying this can't be implemented without using a third-party JS library. We thus opted to drop it from the initial release, but something we want to add.
> \
> Reduce dependencies: The current converter has a dependency on a number of third-party Node.js libraries to bridge the current feature gap between JMeter and k6. As k6 gains these features natiely, we'll move off of the dependencies.
^143086937
**References:** https://instapaper.com/read/1385504694/15446783
---