How come the Sun's gravity can hold distant planets in orbit, but cannot rip humans off Earth?
The Sun is keeping you close. After all, you are orbiting it just like the Earth. You don't fly off into space because the Earth and you experience the same acceleration due to the Sun's gravitational force, so you orbit together; this is sometimes called the equivalence principle.
If, however, you were floating near Earth but closer to the Sun, you would experience stronger gravity. You would be in a smaller orbit which would make you drift away from the Earth. You wouldn't fall into the Sun, though.
Edit: I forgot to say something about the outer planets, something which the other answers touch on but I think get wrong. First, we should speak of acceleration rather than force, because like I said earlier all objects at a given distance from the Sun experience different forces but the same acceleration.
You ask "how come the Sun is strong enough to keep the distant planets in orbit but I don't fall into it?". The important point is that you don't need such a huge acceleration to keep the planets in orbit, because they are far away and move very slowly.
But, the smallness of the acceleration isn't the reason you don't feel it. The reason is that you're in free fall around the Sun; even if you were zipping around kilometers from the Sun's surface, you would not feel the huge gravitational force, because it affects everything around you in exactly the same way (disregarding tidal effects).
First of all, planets are much, much more massive than you are and so the sun's gravity exerts a much larger force on the planets than it does on you.
Secondly (and more importantly) you are much closer to the Earth than you are to the sun. Gravity follows what's called an inverse square law which in simple terms means that if you double the distance between the two objects, the strength of the force gets 4 times weaker (because 2 squared is 4). If you triple the distance, the force gets 9 times weaker.
The sun is around $150\,000\,000$ kilometres away whereas the centre of the Earth is only about $6\,300$ kilometres away from you. That equates to a distance increase factor of $24\,000$... So the force would be $24\,000^2 = 576\,000\,000$ times weaker. The sun's mass is only around $300\,000$ times greater than the mass of the Earth. So it's not anywhere near enough to make up for the weakness caused by the huge distance.
The sun is pulling you up (towards its center) with a force $$\rm F_{sun}=G \frac{M_{sun} × m_{you}}{R^2}$$ and Earth is pulling you down (towards its own center) with a force $$\rm F_{earth}=G \frac{M_{earth} × m_{you}}{r^2}$$
If we find the ration between Earth’s down force and the sun’s up force, we get
$$\rm α = \frac{M_{earth}}{M_{sun}}\frac{R^2}{r^2}$$
$\rm α $ bigger than 1 means that earth is pulling you down with a bigger force. If smaller than 1, the sun is pulling you up with a bigger force. Since
$\rm M_{earth}=6×10^{24} kg$; $\rm M_{sun}=2×10^{30} kg$; $\rm r=6.4×10^3 km$; $\rm R=1.5×10^8 km$, then
$$α=1.6×10^3$$
So, Earth is pulling you down with a force about 1600 times bigger than the sun. That’s why the sun cannot rip you off the earth.
For the planets no matter how big the force between them and the sun is, they would still be trapped (actually you, me and the whole earth too) since there is no other force pulling them away from the sun just like the Earth acted opposing sun’s gravity on you (forget the other stars and the whole universe, ok).