E/F# is F#, E, G# and B — with F♯ put in the bass.
It sounds like the major triad it is, resting on a different floor. If F♯ is already one of the chord’s notes this is an inversion, and if it is not it is a new colour under an unchanged chord; either way the reason to reach for it is a bass line that walks by step where root-position chords would leap.
Inversion or pedal — the harmony is unchanged; only the bass moves.
Also written E over F# or E with F# in the bass.

In which keys. Every note of E/F# belongs to C# minor (the ♭III), E major (the I), F# minor (the ♭VII), Ab minor (the ♭VI), A major (the V) and B major (the IV).
Read E/F# as a sus chord, written another way, which puts it in F# mixolydian. It also sits inside E major pentatonic, E major, E mixolydian and E lydian.
Each of those is a page: the scale across the neck, and the chords it harmonises into — which is where E/F# sits in it. Every scale.
Change one note of E/F# and you have (drop the second), (drop the major third), (the major third becomes the fourth), (the second becomes the major seventh), (add the major seventh) or (the major third becomes the minor third).
E/F# is a slash chord — a triad over a named bass note. Slash chords on every root.
The common shapes and the derived voicings come from different places, and both are explained in how this site is built.
Shows each chord the way this style would voice it, and marks which of its alternatives belong to the idiom.