What a negative is, worked through on real numbers
A screen pixel stores red, green and blue as numbers from 0 to 255. Inverting a pixel means replacing each number v with 255 minus v. A pixel of 10, 120, 250, a strong blue, becomes 245, 135, 5, a strong orange. Black, 0, 0, 0, becomes white, and a mid grey of 128 becomes 127, which looks the same. Each colour turns into its opposite on the colour wheel: red into cyan, green into magenta, blue into yellow.
This is the digital version of a photographic negative. On black and white film, the parts that got the most light turn darkest, so the film shows the scene with light and dark swapped. Printing it inverts it again and gives the positive. That is why inverting twice always gives back the exact original pixels: 255 minus (255 minus v) is v.
The Black and white negative preset takes a different route. It first finds the brightness of each pixel with the Rec. 709 weights, 21% red, 72% green and 7% blue, and then inverts that single grey. A pure red pixel has a brightness of 54, so it becomes a light grey of 201. This is the right choice for a scanned black and white negative, for an X-ray style look, or for making a dark version of a pencil drawing without strange colours.
Colour film negatives are a harder case, and it is fair to say so. The film has an orange mask built into it, so a plain inversion turns the whole picture blue. Scanning software removes the mask with a colour correction tuned to the film, which this tool does not try to do. For colour negatives, inversion here is a quick preview at best.
Other limits: transparency is kept but never inverted, so a transparent background stays transparent. The download keeps the original format, and a JPEG is compressed again at high quality, which loses a very small amount of detail; a PNG keeps every pixel. HEIC and other formats a browser cannot write are saved as PNG. The largest image it takes is 24 megapixels, or 10,000 pixels on a side.