Can we conclude that a distribution is a $L^2$ function by testing with $L^2$? Let $T\colon \mathcal{D}\to\mathbb{R}$ be a distribution. Does $|T(f)|\leq\|f\|_2 \forall f\in\mathcal{D}$ imply $T=T_g$ for some $g\in L^2$? What if $T$ is tempered?

If $T :\mathscr D(\mathbb R^n)\to \mathbb R$ satisfies
$$
\lvert T(f)\rvert \le \|f\|_{L^2(\mathbb R^n)},
$$ 
then $T$ is a functional defined in a dense subset of $L^2(\mathbb R^n)$, and as it is bounded (equivalent, continuous) there, it extends continuously in the whole of $L^2(\mathbb R^n)$. And by Riesz representation, there exists a unique $g\in L^2(\mathbb R^n)$, such that
$$
T(f)=\int_{\mathbb R^n} fg\,dx.
$$
Clearly $\mathbb R^n$ can be replaced by any open subset it.
It $T$ is a tempered distribution nothing changes since $\mathscr S(\mathbb R^n)$ is still dense in $L^2(\mathbb R^n)$.
