According to one embodiment, an electronic device includes a housing, an antenna and a supporting portion. The antenna has a communication face. The supporting portion is between the housing and the antenna. The supporting portion is configured to support the antenna to be slidable between the first position where the antenna is inside the housing and the second position where the antenna is out of the housing, and also to be pivotable at the second position.