Endotoksin, (gr. endo- + toksin), giftstof, som findes indesluttet i visse bakteriers legemer; det modsatte af eksotoksin.