Plancherel's theorem is stated as (e.g. in Rudin's Real and Complex Analysis)
If $f\in L^1 \cap L^2$ then $$ \|f\|_2 = \|\hat f\|_2 $$
where $\hat f$ is the Fourier transform of $f$. On the other hand, Parseval's formula
$$ \int f\,\overline{g}\, d x = \int \hat{f}~\overline{\hat{g}}\, d x$$
should hold whenever $f,\hat f, g\in L^1$.
My question is: is the requirement $f\in L^2$ in Plancherel's theorem needed just to have the two norms to be finite or is there some (more or less hidden) detail that I'm missing and that makes the statement to actually be false if $f\notin L^2$?