An input device comprising: a sensor unit having a support base member, a light-transmitting electrode unit that is provided in a sensing region on a first surface of the support base member, and a terminal part that is conductive with the light-transmitting electrode unit and is provided outside the sensing region on the first surface of the support base member; an optical layer that is superimposed on the sensor unit in a first direction; and a flexible wiring substrate having a connection region that is connected to the terminal part and is held between the optical layer and the support base member, wherein the flexible wiring substrate has a flexible base member (41; 42) on which an electrode layer is provided and a wiring end that is an end of the electrode layer and is connected to the terminal part so as to be conductive with the terminal part with use of a conductive joining member in the connection region, and the wiring end is located at a position set back from an end of the flexible base member (41; 42) on a sensing region side, so that the flexible base member (41; 42) has a protruding part on which the electrode layer is not stacked and that protrudes toward the sensing region side beyond the wiring end, characterized in that the input device further comprises an air bubble region formed between the optical layer and the sensor unit, a part of the air bubble region into which the conductive joining member does not stick out is present on the sensing region side of the conductive joining member relative to a front end of the protruding part, and the protruding part is provided so as to become closer to the support base member in a protruding direction. a sensor unit having a support base member, a light-transmitting electrode unit that is provided in a sensing region on a first surface of the support base member, and a terminal part that is conductive with the light-transmitting electrode unit and is provided outside the sensing region on the first surface of the support base member; an optical layer that is superimposed on the sensor unit in a first direction; and a flexible wiring substrate having a connection region that is connected to the terminal part and is held between the optical layer and the support base member, wherein the flexible wiring substrate has a flexible base member (41; 42) on which an electrode layer is provided and a wiring end that is an end of the electrode layer and is connected to the terminal part so as to be conductive with the terminal part with use of a conductive joining member in the connection region, and the wiring end is located at a position set back from an end of the flexible base member (41; 42) on a sensing region side, so that the flexible base member (41; 42) has a protruding part on which the electrode layer is not stacked and that protrudes toward the sensing region side beyond the wiring end, characterized in that the input device further comprises an air bubble region formed between the optical layer and the sensor unit, a part of the air bubble region into which the conductive joining member does not stick out is present on the sensing region side of the conductive joining member relative to a front end of the protruding part, and the protruding part is provided so as to become closer to the support base member in a protruding direction.