I built an LTSpice to QSPICE converter

I got tired of manually converting LTSpice schematics to QSPICE. It’s using Bordonynov’s symbol and model libraries to make a best-effort mapping of the LTSpice components. Another nice feature is that no files are ever written to disk, so your secrets are safe. :slight_smile: Unless you explicitly upload the schematic as part of a bug report, that is.

Here it is: https://lt2q.com

I’m sure there are bugs, especially in the symbol conversion. There’s a bug report form you can use. If you use the schematic upload option I can have closer look. Or just post feedback on this thread.

I hope you find it useful!

3 Likes

I noticed someone already managed to break it! Thanks. I fixed the bug. Try again!

Thank you very much. I transformed several electronic circuits.

Thanks a lot for this very useful tool, but it would be helpful if the component identifiers and values were reproduced in a much larger font.

Hi. it seems, the mod-statement for B-sources is not longer existing. Even remainder(x,y) is not
working. The correct translation for V=mod(x,y) is now V=(x%y).

Please check it.
Jan

Jan’s report points to an expression-rewrite gap, not just a missing symbol. I’d add a mapping rule from mod(a,b)/remainder(a,b) to (a%b) in the converter and a small regression case, because a plain passthrough will fail if QSPICE no longer accepts those functions. Worth checking nested uses too, such as mod(V(out),2).

@Jan1 @christophersmith mod(,) and remainder(,) are now available in both B-sources and pre-processing functions. Just a reminder: mod(,) and remainder(,) are not the same, following their C language definitions.
11/20/2026 Implemented mod(,) and remainder(,) for behavioral sources.

B-source - mod and remainder.qsch (2.7 KB)
.param - mod and remainder.qsch (2.7 KB)

1 Like