The Shulchan Aruch · Yoreh De'ah
יורה דעה ר״צYoreh De'ah 290
Siman 290 of 402 in Yoreh De'ah — 1 se'if
Se’if 1א׳
סֵפֶר תּוֹרָה אוֹ תְּפִלִּין שֶׁבָּלוּ, אֵין עוֹשִׂין מֵהֶם מְזוּזָה. וְאֵין כּוֹתְבִין אוֹתָהּ עַל גִּלְיוֹנֵי סֵפֶר תּוֹרָה, לְפִי שֶׁאֵין מוֹרִידִין מִקְּדֻשָּׁה חֲמוּרָה לִקְדֻשָּׁה קַלָּה. הַגָּה: אֲבָל מֻתָּר לְתַקֵּן הַסֵּפֶר תּוֹרָה עַצְמָהּ עִם גִּלְיוֹנוֹתֶיהָ, אִם אִי אֶפְשָׁר לְתַקְּנָהּ בְּעִנְיָן אַחֵר וְהָיָה צָרִיךְ לְגָנְזָהּ בְּלָאו הָכֵי (מהר"מ פַּאדוֹאָה סִימָן פ"ד). אֲבָל אִם אֶפְשָׁר לְתַקְּנָהּ בְּעִנְיָן אַחֵר, אַף עַל פִּי שֶׁהַסֵּפֶר תּוֹרָה מִגְּוִילִין וְרוֹצֶה לְדַבֵּק עָלֶיהָ קְלָפִים, לֹא יַחְתֹּךְ הַגִּלְיוֹנוֹת לְתַקְּנָהּ, דְּאֵין אִסּוּר לְתַקְּנָהּ מִבַּחוּץ בִּקְלָף אַף עַל פִּי שֶׁהַסֵּפֶר תּוֹרָה מִגְּוִילִין (ג"ז שָׁם).
To not write [a mezuzah] on the parchment from a sefer torah. A sefer torah or tefilin that got wore out, must not be made into a mezuzah. And not to write it on the parchment [prepared for the intent] of a sefer torah, since we do not descend from higher sanctity to a lower sanctity.
Shulchan Aruch, Yoreh De'ah — Torat Emet 357 edition, via Sefaria — public domain
English: Shulchan Aruch, Wikisource, via Sefaria — CC BY-SA