The atmosphere, technically, goes up to about 200,000 feet. Not as you and I know it, but there are indeed gaseous molecules up there, just hanging out, but held to earth by gravity.
In fact, low-orbiting objects hit these molecules and that is one reason they eventually fall from orbit. In the olden days, anyway.
I know that....but up that high for all practical purposes you are in space.