Carbocations and electrophiles are both electron-deficient species and therefore are electron acceptors. They are attracted to electron-rich centers. However, the electrophile is slightly different from carbocation.
Electrophiles can have a full positive or partial positive charge due to electronegative atoms creating polarity differences, or they can be neutral uncharged species with vacant orbitals.
For example-

In all these cases, they participate in chemical reactions by attracting electrons from the electron-rich centers.
However, a positively charged, trivalent carbon electrophile is a carbocation. A carbocation has only 6 valence electrons and 3 covalent bonds. It has an empty p-orbital to accept two electrons and form a covalent bond. Therefore, it is electron-deficient, unstable, and functions as a reactive intermediate to combine with an electron-rich species in organic reactions.

Therefore, carbocation is an electrophile, but not all electrophiles are carbocations.
Electrophile | Carbocation |
|---|---|
Electron acceptor. | Electron acceptor. |
An electrophile is a positively charged or neutral species. | A carbocation is always positively charged. |
Electrophiles do not always contain carbon atoms. For example, Lewis acids like Fe3+ and BF3 are also considered electrophiles. | A carbocation is always a trivalent, electron-deficient carbon atom with only 6 valence electrons. For example, Methyl cation, tertiary butyl cation, etc. |