We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is Word Wrap?

Mary McMahon
By
Updated: May 16, 2024
Views: 25,010
Share

Word wrap is a feature which allows text to be carried over to the next line so that it will stay within a set of defined margins. Most word processors have this feature, so that people are not forced to enter a return at the end of every line, and there are a variety of ways to play with word wrap within documents. Coding used to build websites can also integrate a word wrap feature, allowing the designer more control over the presentation of the site.

Most word processors have line wrap, which automatically brings text down to the next line when it hits the end of the margin. In the process, the document creates what is known as a “soft return.” If the margins are adjusted, the text will re-wrap the lines, ignoring the soft returns created by the line wrap function while preserving the hard returns entered by the user. Word processors utilize word wrapping algorithms so that long lines of text don't force the user to scroll sideways to read more.

In a word processor, word wrap creates line breaks between words, with the goal of avoiding excessive hyphenation, unless the user specifies otherwise. The word wrap will also break up a long word with no spaces to maintain typographic integrity. In other words, if a word is so long that it would spill over a complete line, the word processor will add a hyphen to break up the word so that the text will display within the margins set by the user.

People can force word wrap on and off with many word processors and graphic design programs to achieve specific looks. Sometimes, for example, users want total control over line breaks, in which case they may turn the function off so that they can dictate the points at which lines end and begin. In other cases, users may leave the line breaks up to the computer, specifying whether or not they want hyphens if words happen to appear near the end of a line. Hyphenation can help to create a crisp, justified margin, while lack of hyphenation usually causes ragged margins, although users can also play with the spacing within lines to even out the margins without hyphenating.

In web coding, word wrap can be extremely important, both as a way of controlling appearance, and to keep text confined to specific areas. Many browsers support both word wrapping, which maintains particular margins, and break-word, in which long words without spaces will be forcibly broken to maintain the look of the text. Unfortunately, as people view text in different browsers and on different platforms, the break-word function can sometimes cause the typography to look strange. People may have noticed a breakdown of the word wrap function when they reply to an email and the text of the previous email appears with a highly irregular margin and seemingly random spaces and returns.

Share
EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Mary McMahon
By Mary McMahon

Ever since she began contributing to the site several years ago, Mary has embraced the exciting challenge of being a EasyTechJunkie researcher and writer. Mary has a liberal arts degree from Goddard College and spends her free time reading, cooking, and exploring the great outdoors.

Discussion Comments
By anon349392 — On Sep 25, 2013

Word Wrap is a feature which allows text to be carried over to the next line so that it will stay within a set margin. I feel this is most helpful for timely reasons and appearance.

By recapitulate — On Feb 08, 2011

I had heard this term before, but didn't realize it was something so rudimentary that I used literally every day when writing emails, letters, or word documents.

By anon110871 — On Sep 13, 2010

Very good program, great idea.

Mary McMahon
Mary McMahon

Ever since she began contributing to the site several years ago, Mary has embraced the exciting challenge of being a...

Learn more
Share
https://www.easytechjunkie.com/what-is-word-wrap.htm
Copy this link
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.