An independent genetic element (DNA) that occurs inside bacterium in addition to the normal bacterial cell genome. The episome can replicate either as an autonomous unit or as one integrated into the host genome. The F (fertility) factor is an episome.