Deleting segments
Removing segments from a JPEG leaves the compressed pixels untouched, so there is no quality loss. You can also keep chosen tags. It needs software installed and care to cover every block type.
Re-encoding in the browser
Drawing the image on a canvas and saving it again needs nothing installed and leaves behind everything that is not pixel data. JPEG and WebP are compressed again, here at a high quality setting.
Colour profiles and orientation
Embedded colour profiles are not carried over, so wide-gamut photos can look slightly different. Orientation flags are applied to the pixels first, so images stay upright.
Which to choose
For lossless JPEG handling or keeping selected tags, use ExifTool on your own machine. For quick, private cleaning of a copy before you share it, a browser tool is simpler.