Porter's 5 Forces and SWOT analysis are both tools used to analyze and make strategic decisions.
Companies, analysts, and investors use Porter's 5 Forces to analyze an industry's competitive environment. In contrast, they tend to use a SWOT analysis to look more deeply within an organization to analyze its internal potential.