טרנפורמציה חיידקית היא תהליך אחד שבאמצעותו חיידקים קולטים דנ”א אקסוגני, או דנ”א שמקורו מחוץ לתא. יש חיידקים המסוגלים לעבור טרנספורמציה באופן טבעי. כמו כן, ניתן לגרום לטרנספורמציה בתנאי מעבדה כחלק מתהליך שיבוט הדנ”א, אבן דרך חשובה בחקר של רצפי הגנים ותפקודיהם ושל החלבונים שהם מקודדים.כדי לעבור טרנספורמציה, חיידקים חייבים להיות קומפטנטיים, כלומר חייבים להכיל מנגנונים מולקולריים להובלת שברי דנ”א מעבר לדופן התא ולקרום התא שלהם, או לעבור טיפול כימי להפיכת דפנות התאים שלהם לחדירות לדנ”א. במעבדה, רצף הדנ”א הנחקר מוחדר לתוך פלסמיד, שהוא מקטע דנ”א מעגלי. הפלסמיד בדרך כלל מכיל גם רצף, כגון גן עמידות לאנטיביוטיקה, המאפשר למדענים לסנן טרנספורמנטים, החיידקים שקלטו את הפלסמיד.עותקים רבים של הפלסמיד מתווספים לחיידקים קומפטנטיים במצע נוזלי, ועקת חום מאלצת את החיידקים לקלוט את הדנ”א. לאחר מכן, מגדלים את החיידקים על גבי מצע סלקטיבי שעשוי ממרכיבים המקדמים את צמיחתם של חיידקים מסוימים ומעכבים את צמיחתם של אחרים. רק החיידקים שיצרו עותקים של הפלסמיד ישרדו על גבי המצע הסלקטיבי ויתרבו ליצירת מושבות, כתמים גלויים של צמיחת חיידקים שנגזרו מתא בודד.