LILLE, France—France and Germany demanded that U.S. tech companies help them police terrorism on the Internet, escalating European efforts to wrangle more law-enforcement help from Silicon Valley.

Top law-enforcement officials from the two countries said on Tuesday they expect U.S. Internet and social-networking companies like Twitter Inc., Facebook Inc. and Google Inc. to pre-emptively remove terror content from their services—or...