Text Cleaner - Remove Newlines from Text and Articles

Do you have a bunch of old articles stored on your computer with hard linebreaks?

These newline characters make it a real pain to upload your articles to your own site through a CMS or to article submission directories. They want free-flowing text that gets broken up automatically by the browser.

If you need to get rid of these newline characters, use the Text Cleaner form below. It works very simply.

Copy and paste your article with newline characters into the top textarea box. Click the button. Copy and paste the cleaned text out of the lower box.

Note: The text cleaner preserves a sequence of “\n\n.” It is assumed that these double newline characters are paragraph breaks, and removing them would make the article illegible.


Text Cleaner Tool: Remove Newline Characters





Bookmark and Share:
These icons link to social bookmarking sites where readers can share and discover new web pages.

  • Digg
  • Furl
  • del.icio.us
  • StumbleUpon
  • MisterWong
  • DZone
  • Technorati

5 Comments to “Text Cleaner - Remove Newlines from Text and Articles”

  1. Rob said this on

    This tool will be great if we can fine tune it a little. Right now it’s combining words in the output.

    Thanks!

  2. Walkere said this on

    That was a simple and incredibly stupid oversight. I was replacing the newline characters with an empty string.

    Considering that there usually wouldn’t be a space before or after the newline (since it was being used as a hard line break), a space should have been inserted instead.

    Should be fixed now… =)

    Don’t hesitate to make any suggestions. I’d like to develop this to have a little more functionality, but I’m not sure where to take it first.

  3. Rob said this on

    I’m not the best html developer in the world. What would it take to copy this page you have and replicate it on my domain?

    Thanks!

  4. Walkere said this on

    It’s a pretty simple concept. All of the code is done through HTML/Javascript - so you can access it all by viewing the source.

    Look at the source of this page to see how the form is constructed, then look in the source for the location of “form-cleaner.js”. That contains all the javascript to do the actual text-cleaning.

  5. Text Frusterated said this on

    Thank you for making and supporting this handy tool. I work for a short-sighted company that resists acquiring any software that is new or appears to be capable of improving productivity. When my requisition for a ~$20 text cleaner software application was denied I found this site. You’ve saved my text bacon. Thanks.

Leave a Reply