You asked

Panasonic lumix g 30mm f 2 8 macro vs ttartisan 40mm f 2 8 macro?

The Panasonic Lumix G 30mm f/2.8 Macro and the TTArtisan 40mm f/2.8 Macro are both f/2.8 macro lenses, but they suit different cameras.

The Panasonic is made for Micro Four Thirds. There it frames like 60mm on full frame, and its f/2.8 gives about the depth of field of f/5.6. It is stabilised and has autofocus, which helps with handheld close-ups. A good match is the OM System OM-1 or the Panasonic Lumix G95.

The TTArtisan is made for APS-C and mounts on Sony E, Fujifilm X, Nikon Z, Canon RF, L-Mount and Micro Four Thirds. On Sony E, Fujifilm X or Nikon Z it frames like 60mm on full frame. On Micro Four Thirds it frames like 80mm, so it reaches further for small subjects. It is manual focus and not stabilised, so it asks for more patience. In return it is the one of the two that fits several brands. On a Fujifilm body such as the Fujifilm X-T30, it is a sensible macro choice.

Which one to take depends mostly on your camera. If you already shoot Micro Four Thirds, the Panasonic is the easier lens to use. If you shoot Sony, Fujifilm or Nikon, the TTArtisan is the one that fits. The site's catalogue pages hold the current price and shop links for each lens, and this answer does not quote a price, since prices change.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.