In mathematics, specifically, in category theory, a 2-functor is a morphism between 2-categories.[1] They may be defined formally using enrichment by saying that a 2-category is exactly a Cat-enriched category and a 2-functor is a Cat-functor.[2]
Explicitly, if C and D are 2-categories then a 2-functor
F\colonC\toD
F\colonObC\toObD
c,c'\inObC
Fc,c'\colonHomC(c,c')\toHomD(Fc,Fc')
Fc,c'
See for more details and for lax versions.