Line Break, Carriage Return Removal Tool

Removing line breaks and carriage returns in your code or text could not be easier. Just paste it in and copy it out!

Our online line break removal tool will remember your preference for replacing line breaks with a character, so the next time you use the tool, it'll be that much quicker!

This tool comes in handy when you want to strip away all new line characters from a chunk of HTML or JavaScript code for faster loading, or in some cases, better readability. There are some large blocks of code that are repetitive in nature and serve only one small purpose. An example might be a list of states or countries within an HTML select element. You are better off removing all line breaks and condensing these to a single line to make your HTML smaller, more readable and faster loading.