Free converter: xTool Studio (.xs / .xcs) to LightBurn (.lbrn2), with layers and settings

Hi all,

I run a CO2 laser with LightBurn, but I often get projects made in xTool Studio. Exporting SVG loses all layer settings, so I wrote a small open-source converter:

What it does:

  • Reads .xs (newer xTool Studio) and .xcs files
  • Transfers geometry (paths, shapes, groups) and bitmaps
  • Creates LightBurn layers per color and operation: cut, line engrave, fill, image
  • Carries over power, speed, passes, line interval, scan angle, cross-hatch, dither mode, negative image and kerf
  • Objects disabled in xTool go to layers with Output off, so nothing is lost
  • Preview window with a layer table; you can edit layer settings before converting
  • Optional material database: pick a material and its settings replace the xTool ones
  • Mirror X / Mirror Y options to match your device settings
  • English and Polish UI; other languages can be added as a simple JSON file

It is a single Python script (Python 3.8+, Windows / macOS / Linux), MIT licensed. Console mode for batch conversion is included.

Some limits: text has to be converted to paths in xTool first, xTool image adjustments are not transferred, and the .xs format is undocumented, so a new xTool Studio version may break something. Laser settings from another machine are only a starting point, so run a material test before a real job.

If a project does not convert correctly, please open an issue on GitHub with a sample file. Feedback welcome!

2 Likes

Do you also have a converter from LB to Studio?
Since LB 2.2 I have issues with my xTool S1…

Nope.
if there is more interest, i can make it. Today will publish new release which converts also files from RDworks.

There is also 2.1 version:

Added

  • Open in LightBurn and Add to LightBurn project buttons: the previewed design (with the chosen material, mirror settings and layer edits) is sent to a running LightBurn 2.2+ through its REST API, without saving a file. Console: --lightburn open / --lightburn import. One-time approval in LightBurn; the secret is stored in ~/.xs2lightburn_lightburn.json.
  • Material import from LightBurn libraries: Import… now also reads .clb files, and From LightBurn… imports the library selected in a running LightBurn 2.2+.

Changed

  • Settings are saved atomically, so an interrupted save cannot leave a damaged settings file.
  • With --lightburn, the console exits with code 1 when a conversion or the transfer fails.

it’s doable, but to.xcs rather than .xs